From c8d2953c859ab2b7591bc1639df1aa14d6a6bc81 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 25 Jun 2013 21:56:08 +0000 Subject: [PATCH] Check that input is created before using it, avoids error when chosen gets involved. --- 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 267c81084e..05734cbba9 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -448,7 +448,7 @@ var et2_selectbox = et2_inputWidget.extend( { _value = _value.split(','); } - if(this.options.tags || this.options.search) + if(this.input !== null && (this.options.tags || this.options.search)) { this.input.val(_value); this.input.trigger("liszt:updated");