From 9302892030c71b3425e12d61f7ba93b259498e12 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 24 Nov 2005 07:42:22 +0000 Subject: [PATCH] Fixed editing and used FAItask attribute git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2036 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 5 ++++- plugins/admin/fai/class_faiHookEntry.inc | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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)){ -- 2.30.2