terminal42 / contao-mp_forms

Real step separation in the form generator of the Contao Open Source CMS
25 stars 13 forks source link

Brackets in select menus delete all input in form and email #13

Closed jscholtysik closed 6 years ago

jscholtysik commented 7 years ago

As discussed with Yanick at the CK2017:

I have created a 3 page form with mp_forms.

On the first page I have a select menu containing brackets in the value and description fields:

bildschirmfoto 2017-06-17 um 15 59 36

When I fill in the fields of page 1 and select "Endkunden (B2C)" and go further to page 2, fill in the next fields and for example go then again back to page 1, I notice that all previously inserted fields are now empty. That means that mp_forms can not handle the brackets in the select menu.

Furthermore then no field values of page 1 are submitted to notification center. The submitted email contains all fields of page 2 and 3, but all fields values of page 1 are also empty.

I made another two tests:

Toflar commented 6 years ago

Wow, it took me forever to debug this but finally found it and it's fixed in 3eba21d5da77f7ae5b9461d167c99b204c77c765.