From 05a96aae6f581356d185c74ff9da78eb6deba668 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 21 Oct 2005 07:58:28 +0000 Subject: [PATCH] Design changes, only set section release if set button is pressed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1650 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackageNew.inc | 14 ++++++++------ plugins/admin/fai/faiPackageNew.tpl | 6 +++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/plugins/admin/fai/class_faiPackageNew.inc b/plugins/admin/fai/class_faiPackageNew.inc index 350019a5d..443759837 100644 --- a/plugins/admin/fai/class_faiPackageNew.inc +++ b/plugins/admin/fai/class_faiPackageNew.inc @@ -177,12 +177,14 @@ class faiPackageNew extends plugin /* Save data to object */ function save_object() { - /* Post handling for Section, Release and Mirror Setup */ - if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){ - $this->FAIdebianRelease = $_POST['FAIdebianReleaseS']; - } - if((isset($_POST['FAIdebianMirrorS']))&&(!empty($_POST['FAIdebianMirrorS']))){ - $this->FAIdebianMirror = $_POST['FAIdebianMirrorS']; + if(isset($_POST['SetRepository'])){ + /* Post handling for Section, Release and Mirror Setup */ + if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){ + $this->FAIdebianRelease = $_POST['FAIdebianReleaseS']; + } + if((isset($_POST['FAIdebianMirrorS']))&&(!empty($_POST['FAIdebianMirrorS']))){ + $this->FAIdebianMirror = $_POST['FAIdebianMirrorS']; + } } } diff --git a/plugins/admin/fai/faiPackageNew.tpl b/plugins/admin/fai/faiPackageNew.tpl index ef61411ca..3e54019e4 100644 --- a/plugins/admin/fai/faiPackageNew.tpl +++ b/plugins/admin/fai/faiPackageNew.tpl @@ -22,7 +22,7 @@

- : + :

@@ -34,7 +34,7 @@ {if $DisRelease neq false} -

{t}Sections for this release{/t} :

+

{t}Sections for this release{/t}:

@@ -45,7 +45,7 @@ {if $DisSection neq false} -

:

+

: