N°1789 Internal: Fix regression introduced in 6a6c069

This commit is contained in:
Molkobain
2018-11-22 10:49:02 +01:00
parent c7ce35a877
commit c4ff20b9fb

View File

@@ -287,13 +287,14 @@ $(function()
var aValues = this[sCallback](oActiveOpElem);
// Update widget
this.options.operator = oActiveOpElem.find('.sfc_op_radio').val();
var sOperator = oActiveOpElem.find('.sfc_op_radio').val();
if(this._getValuesAsText() != this._getValuesAsText(aValues))
if( (this._getValuesAsText() !== this._getValuesAsText(aValues)) || (this.options.operator !== sOperator) )
{
this.is_modified = true;
this.options.oql = '';
this.options.values = aValues;
this.options.operator = sOperator;
this._setTitle();
this._unmarkAsDraft();