Skip to content

fix problems with current version of CascadeSelect#8

Merged
mstuder merged 2 commits intofluxapps:mainfrom
ingoj:main
Feb 2, 2023
Merged

fix problems with current version of CascadeSelect#8
mstuder merged 2 commits intofluxapps:mainfrom
ingoj:main

Conversation

@ingoj
Copy link
Contributor

@ingoj ingoj commented Jan 26, 2023

This fix adresses the changes in CascsdeSelect since versien 6-new festures and 7. CascadeSelect returns now an array with the keya "name" and "default" instead of a string. This causes a crash when html for the edit form of an udf-check is created (somewhere down the line htmlspecialchars ist called with an array as parameter).
the fix shoud not create conflicts with the older versions of CascadeSelect, since it only acts if an array si given for the column definition.
Tested with ILIAS 7, current CascadeSeect and current UserDefaults

ingoj added 2 commits January 26, 2023 16:23
the current versions of CascadeSelect return an array for the column definitions instead of a string. This causes htmlspechialchars to crash, which is called when constructing html fpr the form output. 
This fix chacks, if the definition is an array and sets the textinput to the name of the column and the default set in "(...)".
If the old version of CascadeSelect is used, the fix stay with the old behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants