Don't return empty array for empty single selects, should fix some problems with empty selections

This commit is contained in:
Nathan Gray 2016-03-17 17:22:56 +00:00
parent 5fc0e88b68
commit 6fd841ebee

View File

@ -751,7 +751,7 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
else else
{ {
this.value = this._super.apply(this, arguments); this.value = this._super.apply(this, arguments);
if (this.value === null) this.value = []; // do NOT return null, as it does not get transmitted to server if (this.value === null) this.value = this.options.multiple ? [] : ""; // do NOT return null, as it does not get transmitted to server
} }
return this.value; return this.value;
}, },