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

Alexander Allen alexander.allenz at gmail.com
Sun Jun 30 11:38:14 GMT 2024


Thank you Alan. With php error reporting doesn’t show anything. Indeed I
log the content of the Invoice after that line and shows good but when I go
to the record it disappears.

Already tried with another modules and it’s the same.

On Sun, Jun 30, 2024 at 04:14 Alan Lord <alanslists at gmail.com> wrote:

> 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/
>
>
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20240630/a33239ef/attachment.html>


More information about the vtigercrm-developers mailing list