From 7da0e6d27bf3e06bd4a90238e53f7045c5ff6828 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 10 Jun 2013 22:07:31 +0000 Subject: [PATCH] Check to make sure search sub-widget is created before trying to use it --- etemplate/js/et2_widget_selectAccount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectAccount.js b/etemplate/js/et2_widget_selectAccount.js index 6c0f32077b..fe0c95150f 100644 --- a/etemplate/js/et2_widget_selectAccount.js +++ b/etemplate/js/et2_widget_selectAccount.js @@ -88,7 +88,7 @@ var et2_selectAccount = et2_selectbox.extend( * Tell et2 widget framework where to go */ getDOMNode: function(_sender) { - if(_sender == this.search_widget) + if(this.search_widget != null && _sender == this.search_widget) { return this.search != null ? this.search[0] : this.search_widget._parent.getDOMNode(); }