[Vtigercrm-developers] Work around to Transfer Ownership bypassing logging and event handlers
    johnnyrockets 
    johnb at newsreview.com
       
    Fri Mar 20 19:46:34 GMT 2015
    
    
  
I guess for now, I'm going to go this route:
public function transferRecordsOwnership($transferOwnerId,
$relatedModuleRecordIds){
    global $current_user;
    $user_id = $current_user->id;
 
    $db = PearDatabase::getInstance();
    $query = 'UPDATE vtiger_crmentity SET smownerid = ?, modifiedby = ?,
modifiedtime = NOW() WHERE crmid IN ('. 
generateQuestionMarks($relatedModuleRecordIds).')';
    $db->pquery($query, array($transferOwnerId, $user_id,
$relatedModuleRecordIds));
}
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Work-around-to-Transfer-Ownership-bypassing-logging-and-event-handlers-tp15656p15666.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
    
    
More information about the vtigercrm-developers
mailing list