[Vtigercrm-commits] [Vtiger development] #7820: VT6 New Workflow function: removeEntityMethod()
Vtiger development
vtiger-tickets at trac.vtiger.com
Thu Nov 21 12:40:07 GMT 2013
#7820: VT6 New Workflow function: removeEntityMethod()
------------------------+------------------------
Reporter: Alan Lord | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 5.4.0
Severity: Medium | Keywords:
------------------------+------------------------
Reference:
http://lists.vtigercrm.com/pipermail/vtigercrm-
developers/2013-November/024971.html
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?
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7820>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list