You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to the attribute value on multiple attributes (and not to the text in this case)
It was detected when adding a new attribute to select options, which until then only had the typical value. When populating the default selected option, it would fail because the populated value was an int but the value was now a string.
I workaround it by casting the default selected value to a string when calling populateField, but it would be better to fix Former.
former/src/Former/Helpers.php
Lines 188 to 193 in d8cf68f
This code forces the string type:
It was detected when adding a new attribute to select options, which until then only had the typical value. When populating the default selected option, it would fail because the populated value was an int but the value was now a string.
I workaround it by casting the default selected value to a string when calling populateField, but it would be better to fix Former.
Proposed fix:
P.S.: I only come into contact with Former through another project so I might be completely missing something here, my apologies if so.
The text was updated successfully, but these errors were encountered: