mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
If an option is null, don't keep it because it may get turned to an empty array.
This commit is contained in:
parent
c32beca725
commit
7c72754631
@ -231,6 +231,9 @@ class ajax_select_widget
|
||||
if(is_numeric($value)) {
|
||||
$value = (string)$value;
|
||||
}
|
||||
if($value === null) {
|
||||
unset($options[$key]);
|
||||
}
|
||||
}
|
||||
$options = $GLOBALS['egw']->js->convert_phparray_jsarray("options['$name']", $options, true);
|
||||
$GLOBALS['egw']->js->set_onload("if(!options) {
|
||||
|
Loading…
Reference in New Issue
Block a user