avoid jumping through install steps by url-manipulating; fix pre-selections of select-multiple-settings values;

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-12 14:53:22 +02:00
parent 300db4602b
commit cc11e2de51
5 changed files with 22 additions and 9 deletions

View File

@@ -148,6 +148,9 @@ class Form
case 'select':
$fielddata['selected'] = $fielddata['value'];
unset($fielddata['value']);
if (isset($fielddata['select_mode']) && $fielddata['select_mode'] == 'multiple') {
$fielddata['selected'] = array_flip(explode(",", $fielddata['selected']));
}
break;
case 'checkbox':
$fielddata['checked'] = (bool)$fielddata['value'];