From c4ff20b9fbd3988b23fe2799bcbe15713fc6501c Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 22 Nov 2018 10:49:02 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B01789=20Internal:=20Fix=20regression=20in?= =?UTF-8?q?troduced=20in=206a6c069?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/search/search_form_criteria.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/search/search_form_criteria.js b/js/search/search_form_criteria.js index 112855f55..bd2df0e76 100644 --- a/js/search/search_form_criteria.js +++ b/js/search/search_form_criteria.js @@ -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();