From: hickert Date: Fri, 21 Oct 2005 07:58:28 +0000 (+0000) Subject: Design changes, only set section release if set button is pressed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=05a96aae6f581356d185c74ff9da78eb6deba668;p=gosa.git 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 --- 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} -

:

+

: