From ec7f2677b3a3e04d00728ca8a458b942f815c556 Mon Sep 17 00:00:00 2001 From: alpeb Date: Fri, 19 Nov 2004 13:32:00 +0000 Subject: [PATCH] Delete appropiate instances when deleting processes --- .../galaxia_workflow/src/ProcessManager/ProcessManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/galaxia_workflow/src/ProcessManager/ProcessManager.php b/phpgwapi/inc/galaxia_workflow/src/ProcessManager/ProcessManager.php index ca253c4ba1..ed76638013 100644 --- a/phpgwapi/inc/galaxia_workflow/src/ProcessManager/ProcessManager.php +++ b/phpgwapi/inc/galaxia_workflow/src/ProcessManager/ProcessManager.php @@ -479,6 +479,10 @@ class ProcessManager extends BaseManager { $this->query($query); $query = "delete from ".GALAXIA_TABLE_PREFIX."user_roles where wf_p_id=$pId"; $this->query($query); + + // Remove process instances + $query = "delete from ".GALAXIA_TABLE_PREFIX."instances where wf_p_id=$pId"; + $this->query($query); // Remove the directory structure if (!empty($name) && is_dir(GALAXIA_PROCESSES.SEP."$name")) {