From 3e4100d5df2a2f0738a6f560e0b8c4e2e7feee38 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 19 Dec 2013 18:06:16 +0000 Subject: [PATCH] Make sure content manager is not null before trying to use it (occasionally happens with programmatically created selectboxes) --- 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 d970703262..87a7b896b4 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -223,7 +223,7 @@ var et2_selectbox = et2_inputWidget.extend( // Check whether the options entry was found, if not read it from the // content array. - if (jQuery.isEmptyObject(_attrs["select_options"])) + if (jQuery.isEmptyObject(_attrs["select_options"]) && this.getArrayMgr('content') != null) { if (content_options) _attrs['select_options'] = content_options; var content_mgr = this.getArrayMgr('content');