Skip to content
Snippets Groups Projects
Commit f6ee361c authored by Satish's avatar Satish
Browse files

Fixes #746 - Vtiger 7.1 Duplicate check conditions have or operator, should be and

parent 85ca020e
No related branches found
No related tags found
No related merge requests found
......@@ -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)";
}
......
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