From df20f1b5ab0ac2048f5e6b9b305ab0d3d35e925c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Wed, 18 Jul 2018 13:13:02 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B01553=20-=20Search:=20Fix=20operator=20on?= =?UTF-8?q?=20indexed=20attributes.=20It=20was=20previously=20always=20for?= =?UTF-8?q?ced=20to=20'=3D',=20now=20it's=20only=20defaulted=20to=20'=3D'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[5950] --- js/search/search_form_criteria.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/search/search_form_criteria.js b/js/search/search_form_criteria.js index 569e5fffbc..11df536c6e 100644 --- a/js/search/search_form_criteria.js +++ b/js/search/search_form_criteria.js @@ -152,7 +152,7 @@ $(function() _initChooseDefaultOperator: function() { //if the class has an index, in order to maximize the performance, we force the default operator to "equal" - if (this.options.field.has_index && typeof this.options.available_operators['='] == 'object') + if (this.options.field.has_index && typeof this.options.available_operators['='] == 'object' && this.options.values.length == 0) { this.options.operator = '='; this.options.available_operators['='].rank = -1;//we want it to be the first displayed