If value is available in init, keep it so it doesn't get cleared by set_select_options()

Fixes missing organization name
This commit is contained in:
Nathan Gray 2014-02-03 20:05:29 +00:00
parent 327123a588
commit cffa002dde

View File

@ -94,7 +94,10 @@ var et2_selectbox = et2_inputWidget.extend(
this._super.apply(this, arguments); this._super.apply(this, arguments);
this.input = null; this.input = null;
this.value = '';
// If already provided, initialize value. Prevents it from being cleared
// in set_select_options.
this.value = this.options.value || "";
// Allow no other widgets inside this one // Allow no other widgets inside this one
this.supportedWidgetClasses = []; this.supportedWidgetClasses = [];