From 3a618c23d916e79c0b1cbad2b6ef5ffa9cff38a0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Feb 2014 08:27:26 +0000 Subject: [PATCH] reverted r45509, as it causes an infinit recursion of set_value calling set_select_options calling set_value and so on --- etemplate/js/et2_widget_selectbox.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index b218a105c6..ee273b4cd1 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -94,10 +94,7 @@ var et2_selectbox = et2_inputWidget.extend( this._super.apply(this, arguments); this.input = null; - - // If already provided, initialize value. Prevents it from being cleared - // in set_select_options. - this.value = this.options.value || ""; + this.value = ''; // Allow no other widgets inside this one this.supportedWidgetClasses = [];