Skip to content
Snippets Groups Projects

#Fixes::1654::Yogeshwar::vtws_recordExists($recordId) returns true when $recordId is empty or it doesn't exist as crmid in vtiger_crmentity

Closed yogeshwar requested to merge yogeshwar/vtigercrm:1654 into master
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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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) {
  • Prasad @prasad started a thread on the diff
  • 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;
  • Fixed with c702c27d

  • closed

  • Please register or sign in to reply
    Loading