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

Alan Lord alanslists at gmail.com
Sun Jun 30 10:08:40 GMT 2024


You'll need to debug it using the log and possibly php error reporting.

Initial thoughts are maybe a new mandatory field or something like that 
preventing it from saving?

Al

On 29/06/2024 16:52, Alexander Allen wrote:
> 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();
> 
> _______________________________________________
> http://www.vtiger.com/




More information about the vtigercrm-developers mailing list