Make sure content manager is not null before trying to use it (occasionally happens with programmatically created selectboxes)

This commit is contained in:
Nathan Gray 2013-12-19 18:06:16 +00:00
parent 5b4484317d
commit 3e4100d5df

View File

@ -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');