Code

Fixed editing and used FAItask attribute
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Nov 2005 07:42:22 +0000 (07:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Nov 2005 07:42:22 +0000 (07:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2036 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiHookEntry.inc

index 0de6e7508d28dcc5318983ff52da452f4f34c0b1..1d23d113ca791d9332c961de78c48175d63185a4 100644 (file)
@@ -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'];
       }
index 5b36ec8601f7c9b2b7ab5cca2610f82f7cf5c55d..4b10f1befbfa758c956d08f9b823b98af1342cf4 100644 (file)
@@ -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)){