Code

Script could be empty now
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 09:12:08 +0000 (09:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 09:12:08 +0000 (09:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1479 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiScriptEntry.inc

index 7e9dab75d31f875f6353bd3f48238b0a67261f88..29ee26c90a515c8d7f6ed57ff249a70dba0d9c88 100644 (file)
@@ -25,6 +25,7 @@ require "tabsScript.inc";
 require "tabsProfile.inc";
 require "tabsPackage.inc";
 
+
 class faiManagement extends plugin
 {
        /* Definitions */
index 9b4b1781567cb230a5bd626723feb0ffa382abf4..8471f376cd750265237eb8bc13edc90ca932e669 100644 (file)
@@ -280,6 +280,9 @@ class faiScript extends plugin
         if($tmp['description']==array()){
           unset($tmp['description']);
         }
+        if($tmp['FAIscript']==array()){
+          $tmp['FAIscript']=" ";
+        }
         $ldap->cd($this->config->current['BASE']);
         $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
         $ldap->cd($sub_dn);
index 4d337ca4b3990adf3ac956de5590032cd571208b..2e7341729d8d140d54d7f4429f408eb82ac240d3 100644 (file)
@@ -90,10 +90,6 @@ class faiScriptEntry extends plugin
   
     $str = utf8_encode("üöä");
 
-    if(empty($this->Object_FAIscript)){
-      $message[]=_("Please specify a script.");
-    }
-    
     if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->Object_description)){
       $message[] = _("Invalid character in description. Please enter a valid description.");
     }