Code

Upps
[gosa.git] / plugins / admin / fai / class_faiPackageNew.inc
index ebe1393fb8d904ea10225f5ab1eb0a6d9a70e027..1267e712c24cbc62e51a4a28af008114e8341490 100644 (file)
@@ -49,7 +49,6 @@ class faiPackageNew extends plugin
     }
 
     $smarty->assign("releases"    ,$releases);
-    $smarty->assign("releaseKeys" ,array_flip($releases));
     $smarty->assign("release" ,$this->FAIdebianRelease);
     $smarty->assign("sections",$this->generateSections($sections));
 
@@ -63,12 +62,11 @@ class faiPackageNew extends plugin
     if(is_array($secs)){
       sort($secs);
       $secs= array_unique($secs);
-      $rel  = " onClick='document.mainform.submit();' ";
       foreach($secs as $section){
         if(in_array($section,$this->FAIdebianSection)){
-          $str .= "<input ".$rel." type='checkbox' value='".$section."' name='section_".$section."' checked>".$section."<br>";
+          $str .= "<input type='checkbox' value='".$section."' name='section_".$section."' checked>".$section."<br>";
         }else{
-          $str .= "<input ".$rel." type='checkbox' value='".$section."' name='section_".$section."'>".$section."<br>";
+          $str .= "<input type='checkbox' value='".$section."' name='section_".$section."'>".$section."<br>";
         }
         $str .="<input type='hidden' name='wasOnPage_".$section."'>";
       }
@@ -137,7 +135,9 @@ class faiPackageNew extends plugin
   /* Check supplied data */
   function check()
   {
-    $message= array();
+    /* Call common method to give check the hook */
+    $message= plugin::check();
+
     return ($message);
   }