Skip to content
Snippets Groups Projects
Commit 1749128f authored by Prasad's avatar Prasad
Browse files

Skip retrieval of deleted related record.

parent 010dcbf6
No related branches found
No related tags found
No related merge requests found
......@@ -1449,9 +1449,12 @@ class Vtiger_Module_Model extends Vtiger_Module {
$sql .= " INNER JOIN $tablename ON $tablename.$tabIndex = vtiger_crmentity.crmid
WHERE $tablename.$relIndex IN (". generateQuestionMarks($recordIds).")";
}
$sql .=' AND vtiger_crmentity.deleted = 0';
foreach ($recordIds as $key => $recordId) {
array_push($params, $recordId);
}
$result1 = $db->pquery($sql, $params);
$num_rows = $db->num_rows($result1);
for($j=0; $j<$num_rows; $j++){
......
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