Skip to content
Snippets Groups Projects
Commit 1899fbb9 authored by Prasad's avatar Prasad
Browse files

Merge branch '46_deletedRecords' into 'master'

Fix SQL to remove deleted records from result. refs #46

Changing the parenthesis fixes the issue.

See merge request !82
parents e5d59447 c31e7106
No related branches found
No related tags found
No related merge requests found
......@@ -1441,7 +1441,7 @@ class Vtiger_Module_Model extends Vtiger_Module {
$sql = "SELECT vtiger_crmentity.crmid FROM vtiger_crmentity";
if($tablename == 'vtiger_crmentityrel'){
$sql .= " INNER JOIN $tablename ON ($tablename.relcrmid = vtiger_crmentity.crmid OR $tablename.crmid = vtiger_crmentity.crmid)
WHERE ($tablename.crmid IN (". generateQuestionMarks($recordIds).")) OR ($tablename.relcrmid IN (". generateQuestionMarks($recordIds)."))";
WHERE ($tablename.crmid IN (". generateQuestionMarks($recordIds).") OR $tablename.relcrmid IN (". generateQuestionMarks($recordIds)."))";
foreach ($recordIds as $key => $recordId) {
array_push($params, $recordId);
}
......
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