From f6ee361c1ca235836fdeebb6772da7a30c53eee7 Mon Sep 17 00:00:00 2001
From: satish <satish.dvnk@vtiger.com>
Date: Tue, 9 Jan 2018 17:44:01 +0530
Subject: [PATCH] Fixes #746 - Vtiger 7.1 Duplicate check conditions have or
 operator, should be and

---
 modules/Vtiger/handlers/CheckDuplicateHandler.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/Vtiger/handlers/CheckDuplicateHandler.php b/modules/Vtiger/handlers/CheckDuplicateHandler.php
index 5247a637b..149f30db6 100644
--- a/modules/Vtiger/handlers/CheckDuplicateHandler.php
+++ b/modules/Vtiger/handlers/CheckDuplicateHandler.php
@@ -154,8 +154,7 @@ class CheckDuplicateHandler extends VTEventHandler {
 					}
 
 					if (count($conditions) > 0) {
-						$conditionGlue = ($moduleModel->duplicateCondition == 'all') ? 'AND' : 'OR';
-						$conditionsSql = implode(" $conditionGlue ", $conditions);
+						$conditionsSql = implode(" AND ", $conditions);
 						$query .= " AND ($conditionsSql)";
 					}
 
-- 
GitLab