Make sure widget is a selectbox before trying to set its options

This commit is contained in:
Nathan Gray 2012-04-09 18:33:03 +00:00
parent cdbe049f21
commit 961e32241d

View File

@ -203,7 +203,7 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(
{
mgr.data[id] = _response.rows.sel_options[id];
var select = nm.getWidgetById(id);
if(select)
if(select && select.set_select_options)
{
select.set_select_options(_response.rows.sel_options[id]);
}