From 64585a67677f244fb904bf5450f081ec5a231f0a Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 19 Sep 2006 07:35:37 +0000 Subject: [PATCH] Fixed base for faiSummary git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4721 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiSummaryTab.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index d22b1e84c..0fd878cd3 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -29,10 +29,12 @@ class faiSummaryTab extends plugin{ var $is_dialog = false; var $InitCalled = false; var $usedClasses = array(); - - function faiSummaryTab($config,$dn) + var $base = ""; + var $parent = ""; + + function faiSummaryTab($config,$dni,$parent) { - plugin::plugin($config,$dn); + plugin::plugin($config,$dn,$parent); /* Base object configuration */ $this->objs = array( @@ -65,12 +67,14 @@ class faiSummaryTab extends plugin{ /* Get Classes and release */ $this->Classes = $this->parent->by_object['faiProfile']->FAIclasses; + $this->base = $this->parent->by_object['faiProfile']->base; $str = preg_replace("/^.*ou=profiles,/","",$this->dn); /* Check if parent tab is work tab */ }elseif(isset($this->parent->by_name['workstartup'])){ $this->Classes = $this->parent->by_object['workstartup']->FAIclass; $this->Release = $this->parent->by_object['workstartup']->FAIrelease; + $this->base = $this->parent->by_object['workgeneric']->base; /* Append workstation class && LAST */ if(isset($this->parent->by_object['workgeneric']->cn)){ @@ -137,7 +141,7 @@ class faiSummaryTab extends plugin{ function getBranches($base = false,$prefix = "") { if(!$base){ - $base = $this->config->current['BASE']; + $base = $this->base; } return(get_all_releases_from_base($base,true)); } -- 2.30.2