Code

Fixed missing images problem in group headpage
[gosa.git] / plugins / admin / fai / class_faiPackageNew.inc
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'];
+      }
     }
   }