Code

Updated application branch/freezing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Aug 2006 09:05:20 +0000 (09:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Aug 2006 09:05:20 +0000 (09:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4390 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index 4d842d42d92b75c3c22c9621694faf073aaaf3e3..4f0fd2b455084622930ec08c03439e2b292320be 100644 (file)
@@ -553,11 +553,20 @@ class LDAP{
             }else{
               print_red(_("Unknown FAIstate %s"),$type);
             }
+          }elseif(in_array("gosaApplication",$attr['objectClass'])){
+            $attr['objectClass'][] = "FAIobject";
+            $attr['FAIstate'] = $type;
           }
 
           /* Replace FAIdebianRelease with new release name */
           if(in_array("FAIpackageList" , $attr['objectClass'])){
-            $attr['FAIdebianRelease'] = $destinationName; 
+            if($type=="branch"){
+              $attr['FAIstate'] ="branch";
+            }elseif($type=="freeze"){
+              $attr['FAIstate'] ="freeze";
+            }else{
+              print_red(_("Unknown FAIstate %s"),$type);
+            }
           }
 
           /* Add entry */