[Vtigercrm-developers] VT6 New Workflow function: removeEntityMethod()

Prasad prasad at vtiger.com
Thu Nov 21 12:42:19 GMT 2013


Noted: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7820.

Thanks,
Prasad

*Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I*
Facebook<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall>
 *I* Blog <https://blogs.vtiger.com/>* I*
Wiki<http://wiki.vtiger.com/index.php/Main_Page>
 *I *Forums  <https://discussions.vtiger.com>*I*
Website<https://www.vtiger.com/>


On Thu, Nov 21, 2013 at 5:20 PM, Alan Lord <alanslists at gmail.com> wrote:

> Hi Guys,
>
> I just noticed that there is now a removeEntityMethod function in
> VTEntityMethodManager.inc which is a good thing IMHO :-)
>
> What I am curious about though is this function is very sparse and will,
> if I'm right, leave "floating" workflow tasks that originally called this
> entitymethod that's just been deleted...
>
>          /**
>>          * Function to remove workflowtasks entity method
>>          * @param <String> Module Name
>>          * @param <String> Entity Method Name.
>>          */
>>         function removeEntityMethod($moduleName, $methodName){
>>                 $adb = $this->adb;
>>                 $adb->pquery("DELETE FROM com_vtiger_workflowtasks_entitymethod
>> WHERE module_name = ? and method_name= ?", array($moduleName, $methodName));
>>         }
>>
>
> Should this function not also find any workflowtasks that used this method
> and remove them too?
>
> Cheers
>
> Al
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20131121/3d144f97/attachment.html>


More information about the vtigercrm-developers mailing list