Code

Apply patch for #4486
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Sep 2010 08:40:57 +0000 (08:40 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Sep 2010 08:40:57 +0000 (08:40 +0000)
Disallow usage of an existing FAI profile as name for a FAI class
created by copy and paste

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19541 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc

index c0114568aab192844a91429f03e9d619435b6b80..31c3aec890e89f6d37851207de302ed3c5aef74d 100644 (file)
@@ -1415,7 +1415,7 @@ class faiManagement extends plugin
       } 
       $res  = FAI::get_all_objects_for_given_base($base,"(|".$f.")",TRUE);    
     }else{
-      $res  = FAI::get_all_objects_for_given_base($base,"(objectClass=".$oc.")",TRUE);
+      $res  = FAI::get_all_objects_for_given_base($base,"(|(objectClass=FAIprofile)(objectClass=".$oc."))",TRUE);
     }
     $delete = array();
     $used   = array();