From: hickert Date: Thu, 24 Nov 2005 07:42:22 +0000 (+0000) Subject: Fixed editing and used FAItask attribute X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9302892030c71b3425e12d61f7ba93b259498e12;p=gosa.git Fixed editing and used FAItask attribute git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2036 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 0de6e7508..1d23d113c 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -78,10 +78,13 @@ class faiHook extends plugin } } - function getUsedFAItask() + function getUsedFAItask($cn) { $ret = array(); foreach($this->SubObjects as $name => $class){ + if($class['cn'] == $cn){ + continue; + } if($class['status'] != "delete"){ $ret[$class['FAItask']] = $class['FAItask']; } diff --git a/plugins/admin/fai/class_faiHookEntry.inc b/plugins/admin/fai/class_faiHookEntry.inc index 5b36ec860..4b10f1bef 100644 --- a/plugins/admin/fai/class_faiHookEntry.inc +++ b/plugins/admin/fai/class_faiHookEntry.inc @@ -61,7 +61,7 @@ class faiHookEntry extends plugin } } - $used_tasks = $this->parent->getUsedFAItask(); + $used_tasks = $this->parent->getUsedFAItask($this->cn); $tasks = $this->tasks; foreach($this->tasks as $id => $task){ if(in_array($task,$used_tasks)){