Code

Design changes, only set section release if set button is pressed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Oct 2005 07:58:28 +0000 (07:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Oct 2005 07:58:28 +0000 (07:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1650 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackageNew.inc
plugins/admin/fai/faiPackageNew.tpl

index 350019a5d220c0aad989fc8bd3b8b4b77ebe4c55..4437598370f824dc89d5c1c064c521e8986c286f 100644 (file)
@@ -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'];
+      }
     }
   }
 
index ef61411ca040857218aa5564f5249ab0f52d874a..3e54019e4a6142977e6307007bf6a7240ee3fa21 100644 (file)
@@ -22,7 +22,7 @@
 <tr>
        <td height="30">
                <h2>
-                       <LABEL for="release">{t}Following releases are available{/t}</LABEL> 
+                       <LABEL for="release">{t}Following releases are available{/t}</LABEL>: 
                </h2>
        </td>
        <td>
@@ -34,7 +34,7 @@
 {if $DisRelease neq false}
 <tr>
        <td height="30">
-        <h2>{t}Sections for this release{/t} : </h2> 
+        <h2>{t}Sections for this release{/t}: </h2> 
                
        </td>
        <td>
@@ -45,7 +45,7 @@
 {if $DisSection neq false}
 <tr>
        <td height="30">
-               <h2><LABEL for="mirror">{t}Matching mirrors{/t}</LABEL> : </h2>
+               <h2><LABEL for="mirror">{t}Matching mirrors{/t}</LABEL>: </h2>
        </td>
        <td>
                <select name="FAIdebianMirrorS" title="{t}mirror{/t}" {$MirrorACL}>