diff --git a/etemplate/inc/class.ajax_select_widget.inc.php b/etemplate/inc/class.ajax_select_widget.inc.php index ac0220aba4..cd70c12593 100644 --- a/etemplate/inc/class.ajax_select_widget.inc.php +++ b/etemplate/inc/class.ajax_select_widget.inc.php @@ -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) {