From b14424dbd1914c9042de292d68072238bb71a609 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 28 Nov 2013 18:43:12 +0000 Subject: [PATCH] Handle possibility of a null option without failing --- etemplate/js/et2_widget_selectbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }