From ce4215136541f3e87608cb2d999f3514237b1ffd Mon Sep 17 00:00:00 2001
From: "j.goderbauer" <j.goderbauer@adito.de>
Date: Wed, 9 Sep 2020 09:12:30 +0200
Subject: [PATCH] Organisation_entity: Index bugfix: standard phone and
 standard email stored too much values 2

---
 process/IncomingCallExecutor_lib/process.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/process/IncomingCallExecutor_lib/process.js b/process/IncomingCallExecutor_lib/process.js
index 876bb084ac..9f6eb5534d 100644
--- a/process/IncomingCallExecutor_lib/process.js
+++ b/process/IncomingCallExecutor_lib/process.js
@@ -379,7 +379,7 @@ IncomingCallExecutor._getContactsFromNumber = function(pNumber, pContactIds)
         contactIds.
         */
         var patternConfig = indexsearch.createPatternConfig();
-        var searchTerm = indexsearch.createTerm(pNumber).setIndexField("phone");
+        var searchTerm = indexsearch.createTerm(pNumber).setIndexField("phone");//phone contains right now the standard phone number
         patternConfig.plus(searchTerm);
         var pattern = indexsearch.buildPattern(patternConfig);
         var indexQuery = indexsearch.createIndexQuery().setPattern(pattern)
-- 
GitLab