From 961e32241dc472efef001e5badf5518e3cc7d432 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 9 Apr 2012 18:33:03 +0000 Subject: [PATCH] Make sure widget is a selectbox before trying to set its options --- etemplate/js/et2_extension_nextmatch_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch_controller.js b/etemplate/js/et2_extension_nextmatch_controller.js index 86ac00df1a..c4a788f99f 100644 --- a/etemplate/js/et2_extension_nextmatch_controller.js +++ b/etemplate/js/et2_extension_nextmatch_controller.js @@ -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]); }