[Vtigercrm-developers] Cant edit record model via custom function execution in workflow

Alexander Allen alexander.allenz at gmail.com
Sat Jun 29 15:52:07 GMT 2024


 After a migration from vtiger 8.0 to 8.2 I cant run the following script.
If I dont set the mode to edit it creates a new Invoice but if I set to
edit, it doesnt change.

Does someone had the same issue?

$linkModule ="Invoice";
$recordModel= Vtiger_Record_Model::getInstanceById($idenvio,$linkModule);
$recordModel->set('invoicestatus', 'Cancel');
$recordModel->set('mode','edit');
$recordModel->save();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20240629/064bc21d/attachment.html>


More information about the vtigercrm-developers mailing list