From ead7d0962a4a101af20b3382ac3fbf62bc396991 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 14 Jun 2006 06:03:49 +0000 Subject: [PATCH] Fixed apps release snapshot functionality git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3806 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/applications/class_applicationManagement.inc | 5 +++-- plugins/admin/applications/class_divListApplication.inc | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc index 117ef50df..5a3cecede 100644 --- a/plugins/admin/applications/class_applicationManagement.inc +++ b/plugins/admin/applications/class_applicationManagement.inc @@ -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); } diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc index 32ea35acd..525840bbf 100755 --- a/plugins/admin/applications/class_divListApplication.inc +++ b/plugins/admin/applications/class_divListApplication.inc @@ -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(); -- 2.30.2