[Vtigercrm-developers] Function vtws_revise creates an incorrect history entry
Alan Lord (News)
alanslists at gmail.com
Mon Jun 6 15:48:33 GMT 2016
On 06/06/16 15:51, MrJingles wrote:
>
> I'm looking at utilising the *vtws_revise* function to update a particular
> field. I'm testing this function at the moment and my code is pasted at the
> end of this post.
>
The workflow is triggering itself.
Add this before the function runs:
global $VTIGER_BULK_SAVE_MODE;
$bsval = $VTIGER_BULK_SAVE_MODE;
$VTIGER_BULK_SAVE_MODE = true;
Then reset is back afterwards:
$VTIGER_BULK_SAVE_MODE = $bsval;
or use database queries.
HTH
Al
--
Libertus Solutions
http://www.libertus.co.uk
More information about the vtigercrm-developers
mailing list