Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

Field type textarea not saved correctly in database #92

Closed DonQuicky closed 6 years ago

DonQuicky commented 8 years ago

When I use a textarea in my forms with hook FormItSaveForm enabled, the value been stored is not the value of the textarea but the value of the previous field in the form.

The e-mail send by FormIt is displaying the correct value, so it looks like a bug in storing values in the database.

error-formitsave-textarea

stackcoder commented 8 years ago

I've noticed exactly the same behavior in my environment. Do you already run PHP 7?

DonQuicky commented 8 years ago

Yep, I do use PHP 7. I believe FormIt would be PHP 7 ready.

joeke commented 8 years ago

@DonQuicky FormIt should indeed be PHP7 ready.. I'll look into this and get back to you asap.

joeke commented 8 years ago

@DonQuicky I can't seem to reproduce this issue.. could you post your FormIt snippet call?

stackcoder commented 8 years ago

I ran into this issue after upgrading my test environment to php7.

Unfortunately FormIt is not compatible with PHP 7. Please see: https://github.com/Sterc/FormIt/issues/98

joeke commented 7 years ago

@DonQuicky @stackcoder This should be resolved with the fixes mentioned in https://github.com/Sterc/FormIt/issues/98. They will be included in the upcoming 3.0.3 release.