sulu / SuluFormBundle

Form Bundle for handling Dynamic and Symfony Forms in https://sulu.io
MIT License
81 stars 78 forks source link

Form required value update for non required field types. #353

Open Skullfox opened 1 year ago

Skullfox commented 1 year ago
Q A
Bug? Yes
New Feature? no
Bundle Version 2.5.0
Sulu Version 2.5.1

Actual Behavior

Changing a form field with checked required checkbox to any other field type like free text, with no required checkbox, dont update the required property after saving.

Steps to Reproduce

Create new form field with checked required and save. image Change field to Free Text and save. image The form field now still contains the required property with true which breaks the form. image

hxrriet02 commented 1 year ago

I'm having the same issue. The error on the client side on submit is quite unclear too which field it is, just saying 'This value should not be blank.'.