Code

Fixed apps release snapshot functionality
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Jun 2006 06:03:49 +0000 (06:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Jun 2006 06:03:49 +0000 (06:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3806 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_applicationManagement.inc
plugins/admin/applications/class_divListApplication.inc

index 117ef50df85bbf5e43f94ada3eb6a90854f0910d..5a3cecedea1eb7e1cd27033fe9a2762531217ff1 100644 (file)
@@ -72,7 +72,7 @@ class applicationManagement extends plugin
     $ldap                   = $this->config->get_ldap_link();
     $dn                     = "ou=apps,".$base;
     $ret                    = array();
-    $ret [$base] = "/";
+    $ret ["ou=apps,".$base] = "/";
 
     $ldap->cd($dn);
     $ldap->search("objectClass=organizationalUnit",array("ou"));
@@ -364,8 +364,9 @@ class applicationManagement extends plugin
       Dialog display
      ****************/
 
+    $useBase = $this->DivListApplication->selectedRelease;
     /* Check if there is a snapshot dialog open */
-    if($str = $this->showSnapshotDialog($this->DivListApplication->selectedBase,"ou=apps,")){
+    if($str = $this->showSnapshotDialog($this->DivListApplication->selectedBase,$useBase)){
       return($str);
     }
 
index 32ea35acdec173c8d8a48f14802f24fe12730c4e..525840bbfd0f156923f308b5243a601d6c3f93cf 100755 (executable)
@@ -21,7 +21,9 @@ class divListApplication extends MultiSelectWindow
   function divListApplication ($config,$parent)
   {
     MultiSelectWindow::MultiSelectWindow($config,"Application");
-    
+   
+    $this->selectedRelease = "ou=apps,".$_SESSION['CurrentMainBase'];
     $this->parent       = $parent;
     $this->ui           = get_userinfo();