mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Merge pull request #1579 from nmaillat/new-grammar-candidat
candidat's query compliant with new grammar
This commit is contained in:
@@ -775,7 +775,7 @@ function doThesSearch(type, sbid, term, field)
|
|||||||
if(type=='T')
|
if(type=='T')
|
||||||
v = '[' + term + ']';
|
v = '[' + term + ']';
|
||||||
else
|
else
|
||||||
v = '"' + term + '" IN ' + field;
|
v = field + '="' + term + '"';
|
||||||
selectedFacetValues = [];
|
selectedFacetValues = [];
|
||||||
$('#EDIT_query').val(v);
|
$('#EDIT_query').val(v);
|
||||||
checkFilters();
|
checkFilters();
|
||||||
|
@@ -576,7 +576,7 @@ function doThesSearch(type, sbid, term, field) {
|
|||||||
if (type == 'T')
|
if (type == 'T')
|
||||||
v = '*:"' + term.replace("(", "[").replace(")", "]") + '"';
|
v = '*:"' + term.replace("(", "[").replace(")", "]") + '"';
|
||||||
else
|
else
|
||||||
v = '"' + term + '" IN ' + field;
|
v = field '="' + term + '"';
|
||||||
doSpecialSearch(v, true);
|
doSpecialSearch(v, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -963,4 +963,3 @@ function execLastAct(lastAct) {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user