Code

Added http://servername/ppd/ to gotoPrinterPPD
[gosa.git] / plugins / admin / fai / class_faiPackageNew.inc
index 350019a5d220c0aad989fc8bd3b8b4b77ebe4c55..485e561cfe34d6f660fd4a42754102674a230935 100644 (file)
@@ -39,6 +39,9 @@ class faiPackageNew extends plugin
 
   function execute()
   {
+       /* Call parent execute */
+       plugin::execute();
+
     /* Fill templating stuff */
     $smarty     = get_smarty();
     $display = "";
@@ -177,12 +180,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'];
+      }
     }
   }