summaryrefslogtreecommitdiffstats
path: root/examples/group.view.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-23 22:05:39 -0400
committerMalf Furious <m@lfurio.us>2018-09-23 22:05:39 -0400
commitfd58becfca433f125df70531f9bece88c8f14b71 (patch)
tree3d453941b267bcd1579f1ee29d30e35b95c48436 /examples/group.view.php
parentd9b75f4f38bb258893896443bdfb3a3e43773d47 (diff)
downloadscrott-fd58becfca433f125df70531f9bece88c8f14b71.tar.gz
scrott-fd58becfca433f125df70531f9bece88c8f14b71.zip
form: Fix bug in populate()
There was a problem with processing enum type fields. The way all other field types are asserted to be 'defined' is via: isset($field) && $field != "" Which works perfectly fine, and is exactly what we want. However, with enums the second part of that && can bite us if "" is in the list of acceptable values. This commit removed that half of the check (only for enum values) so that the empty string may be an acceptable enum value. If "" is not in the values array, then the check is implicitly reinstated.
Diffstat (limited to 'examples/group.view.php')
0 files changed, 0 insertions, 0 deletions