1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Fix for missing dropdown selection in admin-ui edit mode.

This commit is contained in:
Cameron
2020-12-03 17:31:03 -08:00
parent 86690cee65
commit 83d189e04c
2 changed files with 17 additions and 4 deletions

View File

@@ -3240,7 +3240,8 @@ var_dump($select_options);*/
}
else
{
$sel = is_array($selected) ? in_array($value, $selected) : ($value === $selected);
$sel = is_array($selected) ? in_array($value, $selected) : ($value == $selected); // comparison as int/string currently required for admin-ui to function correctly.
if(!empty($options['optDisabled']) && is_array($options['optDisabled']))
{