Code

Fixed problems with group application menus
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Aug 2008 09:10:32 +0000 (09:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Aug 2008 09:10:32 +0000 (09:10 +0000)
-New apps couldn't be configured.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12218 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc

index ff42dc878d50d84ef458ddb582b3aa9b3c65a01a..82a4735b0e37ad694a7822c50112a7f4d62c5f74 100644 (file)
@@ -568,9 +568,12 @@ class appgroup extends plugin
     $entry  = $this->edit_entry;
     $r_entry= &$all[$entry['UNIQID']];
 
+
     if($entry['TYPE'] == "ENTRY"){
       $r_entry['PARAMETER'] = $this->app_parameter;
-      $r_entry['STATUS'] = "EDITED";
+      if($r_entry['STATUS'] != "ADDED"){
+        $r_entry['STATUS'] = "EDITED";
+      } 
     }
     if($entry['TYPE'] == "FOLDER"){
       $r_entry['ICON']   = $this->edit_entry['ICON'];
@@ -1194,7 +1197,6 @@ class appgroup extends plugin
     $prio = 0;
     $Actions = array("Remove" => array(),"Edit" => array() , "Add" => array());
 
-
     /* Walk through the menu structure and build up the ldap data object, 
         the entry dn and the entry priority.
      */