#Fixes::1654::Yogeshwar::vtws_recordExists($recordId) returns true when $recordId is empty or it doesn't exist as crmid in vtiger_crmentity
2 unresolved threads
vtws_recordExists($recordId) returns true when $recordId is empty or it doesn't exist as crmid in vtiger_crmentity
Merge request reports
Activity
Filter activity
140 140 global $adb; 141 141 $query = 'Select deleted from vtiger_crmentity where crmid=?'; 142 142 $result = $adb->pquery($query, array($recordId)); 143 return $adb->query_result($result, 0, 'deleted'); 143 if($adb->num_rows($result) > 1) { 140 140 global $adb; 141 141 $query = 'Select deleted from vtiger_crmentity where crmid=?'; 142 142 $result = $adb->pquery($query, array($recordId)); 143 return $adb->query_result($result, 0, 'deleted'); 143 if($adb->num_rows($result) > 1) { 144 return $adb->query_result($result, 0, 'deleted'); 145 } 146 return 1;