From: hickert Date: Thu, 18 May 2006 10:43:35 +0000 (+0000) Subject: Added LAST class as ever used class, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d7cd908b8df7dd80c07802e3899fd8d758f9b10;p=gosa.git Added LAST class as ever used class, and cn too, if edited object is a WS git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3424 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index 40d398197..0db08e866 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -55,7 +55,8 @@ class faiSummaryTab extends plugin{ $this->Result = array(); $_SESSION['faiSummaryTab']['UniqueID'] = 0; $tmp = $this->getBranches(); - + + /* Get classes & release name There are 2 different tabs which use the summary tab faiProfile / Workstations */ @@ -74,12 +75,20 @@ class faiSummaryTab extends plugin{ }elseif(isset($this->parent->by_name['workstartup'])){ $this->Classes = $this->parent->by_object['workstartup']->FAIclass; $this->Release = $this->parent->by_object['workstartup']->FAIrelease; + + /* Append workstation class && LAST */ + if(isset($this->parent->by_object['workgeneric']->cn)){ + $this->Classes[] = $this->parent->by_object['workgeneric']->cn; + } + $tmp = array_flip($tmp); if(!isset($tmp[$this->Release])) { $this->Release = ""; } } + $this->Classes[] = "LAST"; + /* Set all available releases */ $this->Releases = array_flip($this->getBranches()); $this->usedClasses = array();