Fix "Cannot read property 'replace' of undefined" when setting multi-select with empty label to empty value

This commit is contained in:
Nathan Gray 2016-04-11 15:59:17 +00:00
parent ce94f07599
commit fd3ae9f899

View File

@ -582,7 +582,7 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
} }
else else
{ {
if(this.find_multi_option(_value[i]).prop("checked", true).length == 0) if(this.find_multi_option(_value).prop("checked", true).length == 0)
{ {
var debug_value = _value; var debug_value = _value;
if(debug_value === null) debug_value == 'NULL'; if(debug_value === null) debug_value == 'NULL';