Code

the existence check needs to include FAIprofile.
authorwolffc <wolffc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Jan 2009 16:16:12 +0000 (16:16 +0000)
committerwolffc <wolffc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Jan 2009 16:16:12 +0000 (16:16 +0000)
previously, the fact that it failed to find FAIprofiles of the same name,
resulted in the possibility to overwrite profiles by copy&paste in one
place.

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

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

index fa9f1de2431d8a6ed050397176d0bae5dbb47c68..f4f31d81155acf3cf793c6c20e034da718b414f3 100644 (file)
@@ -1396,7 +1396,7 @@ class faiManagement extends plugin
 
     if($oc == "FAIprofile"){
       $f = "";
-      $ocs = array("FAItemplate","FAIhook","FAIpartitionTable","FAIpackageList","FAIscript","FAIvariable");
+      $ocs = array("FAIprofile","FAItemplate","FAIhook","FAIpartitionTable","FAIpackageList","FAIscript","FAIvariable");
       foreach($ocs as $oc){
         $f .= "(objectClass=".$oc.")";
       }