Skip to content
Snippets Groups Projects
Commit 555b5fb3 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

Merge branch 'cm_sp_1078328_DuplicatescannpatternParseExeption' into '2021.0'

[Projekt: xRM-ContactManagement][TicketNr.: 1078328][Dubletten: Fehler bei...

See merge request xrm/basic!916
parents 1ac9dc94 0a626869
No related branches found
No related tags found
No related merge requests found
......@@ -290,13 +290,24 @@ IndexsearchFilterRow.prototype.buildQuery = function(pFieldValues)
*
* @param {string} pName the row field name
* @param {string} pOperator the operator for the group can either be 'AND' or 'OR'
* @param {string} pValue the field valze
* @param {string} pValue the field value
*/
IndexsearchFilterRow.fromFilter = function(pName, pOperator, pValue)
{
if(pOperator == "NOT_EQUAL" || pOperator == "CONTAINSNOT")
{
return new IndexsearchFilterRow(pName, true, JSON.parse(pValue));
let exclude;
try
{
exclude = JSON.parse(pValue);
}
// If the pValue isn't an Object or Array
catch (e if e instanceof SyntaxError)
{
exclude = [pValue];
}
return new IndexsearchFilterRow(pName, true, exclude);
}
else if(pOperator == "ISNOTNULL")
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment