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
The ChoiceWidget does not appear to make use of the titles passed in through the Liform schema. The problem is that it is looking within the overall schema array and not within the liform element of the schema array.
This is what the Liform generated array looks like:
Hehe, I did again the fix in the PHP repo :). The reason is that at the beginning I started to put all the non standard json schema properties in a liform subarray, but then I decided not to do so anymore, because... for starters liform itself was non standard. Also, json schema validators validate correctly schemas with additional properties, and the standard itself says that anything a json schema parser cannot understand should be ignored.
But it looks like I forgot about this one. So thank you for finding it :) I will make a new release of liform in minutes, but it is fixed in master.
Hi there
The ChoiceWidget does not appear to make use of the titles passed in through the Liform schema. The problem is that it is looking within the overall schema array and not within the liform element of the schema array.
This is what the Liform generated array looks like:
As you can see from the above, the "enum_titles" element is a child of "liform" and not the overall field schema ("announcementType" in this example).
I believe that by changing this line within the ChoiceWidget
to
will fix the issue.
Thanks!
The text was updated successfully, but these errors were encountered: