[Vtigercrm-developers] Inventory Record copying

Alan Lord alanslists at gmail.com
Mon Nov 6 13:27:26 GMT 2017


On 06/11/17 12:48, Alan Lord wrote:
> I don't really have a way to tell which type of save is which (Detail or 
> Edit) from the data passed into the Custom Workflow function.
> 
> I don't believe that I can use the $focus->isLineItemUpdate value when 
> using the Server APIs.
> 
> How am I supposed to achieve this?

This is a really horrible "hack" (and one you should probably not really 
be able to do), but it does seem to prevent the duplicate line items 
problem if, right at the start of my custom workflow function I add:

>     if($_REQUEST['action'] == 'Save') {
>         $_REQUEST['action'] = 'SaveAjax';
>     }

:-(

Al



More information about the vtigercrm-developers mailing list