forked from extern/egroupware
Delete appropiate instances when deleting processes
This commit is contained in:
parent
fa70cfed73
commit
ec7f2677b3
@ -479,6 +479,10 @@ class ProcessManager extends BaseManager {
|
|||||||
$this->query($query);
|
$this->query($query);
|
||||||
$query = "delete from ".GALAXIA_TABLE_PREFIX."user_roles where wf_p_id=$pId";
|
$query = "delete from ".GALAXIA_TABLE_PREFIX."user_roles where wf_p_id=$pId";
|
||||||
$this->query($query);
|
$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
|
// Remove the directory structure
|
||||||
if (!empty($name) && is_dir(GALAXIA_PROCESSES.SEP."$name")) {
|
if (!empty($name) && is_dir(GALAXIA_PROCESSES.SEP."$name")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user