diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index c5bcd9dc2f..b3364837c7 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -808,7 +808,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM], } } // Allow some special extras for objects by passing the whole thing - value might not be key - var option_id = _options[key].value || _options[key].id || key; + var option_id = _options[key] == null ? key : _options[key].value || _options[key].id || key; if(option_id != key) { egw.debug('log', 'Options not indexed. TODO: what is up?', this); }