From: hickert Date: Tue, 24 Jan 2006 10:01:45 +0000 (+0000) Subject: Fixed pakage list X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e5aac395b9a5a8c726fb0c34f1cacb41b69225b4;p=gosa.git Fixed pakage list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2552 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackageNew.inc b/plugins/admin/fai/class_faiPackageNew.inc index 60aea4aff..ebe1393fb 100644 --- a/plugins/admin/fai/class_faiPackageNew.inc +++ b/plugins/admin/fai/class_faiPackageNew.inc @@ -70,6 +70,7 @@ class faiPackageNew extends plugin }else{ $str .= "".$section."
"; } + $str .=""; } } return($str); @@ -104,17 +105,25 @@ class faiPackageNew extends plugin function save_object() { /* Post handling for Section, Release Setup */ - if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){ - $this->FAIdebianRelease = $_POST['FAIdebianReleaseS']; - } + if(isset($_POST['YesItIsPostedPackages'])){ - /* Get Sections */ - foreach($_POST as $name => $value){ - if(preg_match("/^section_/",$name)){ - $this->FAIdebianSection[$value] = $value; + if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){ + $this->FAIdebianRelease = $_POST['FAIdebianReleaseS']; + } + + foreach($_POST as $name => $value){ + if(preg_match("/wasOnPage_/",$name)){ + $nm = preg_replace("/wasOnPage_/","",$name); + if(isset($_POST['section_'.$nm])){ + $this->FAIdebianSection[$nm] = $nm; + }else{ + if(isset($this->FAIdebianSection[$nm])){ + unset($this->FAIdebianSection[$nm]); + } + } + } } } - /* Remove all section that are not available at the currently selected server */ $atr = $this->getServerInfos(); foreach($this->FAIdebianSection as $section){ diff --git a/plugins/admin/fai/faiPackageNew.tpl b/plugins/admin/fai/faiPackageNew.tpl index 6c254b32b..c23e489d8 100644 --- a/plugins/admin/fai/faiPackageNew.tpl +++ b/plugins/admin/fai/faiPackageNew.tpl @@ -36,6 +36,7 @@ +