• Resolved miglenetiketa

    (@miglenetiketa)


    Hello.

    The plugin as it is breaks the wpforms checkbox component. To reproduce you can create a blank form and add the checkbox. Then submit the form by selecting values. Your first selected item will NOT be selected. At that point it’s possible to reproduce the issue by simply editing the form in admin. First save doesn’t even show the “form has been updated successfully” dialog upon saving.

    Had to find the reason because we needed the form to work together with this plugin. The issue is (at least currently) on line 45 of compatibility/wpforms-lite.php. There’s a missing =, without which the first index (namely, 0) evaluates to true, because it’s only logical for PHP to evaluate 0 == 'any random string' to true.

    For now we changed the condition ourselves on the server, but would be great to have it fixed upstream so the next update doesn’t break it again.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    Thanks for your suggestion with the fix. We already changed the code so the revision will be available in the next plugin release.

    Thanks

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.