From 1b0f2d09acb33b4b5ea704aef912412b4813b878 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Oct 2005 09:12:08 +0000 Subject: [PATCH] Script could be empty now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1479 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiManagement.inc | 1 + plugins/admin/fai/class_faiScript.inc | 3 +++ plugins/admin/fai/class_faiScriptEntry.inc | 4 ---- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 7e9dab75d..29ee26c90 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -25,6 +25,7 @@ require "tabsScript.inc"; require "tabsProfile.inc"; require "tabsPackage.inc"; + class faiManagement extends plugin { /* Definitions */ diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 9b4b17815..8471f376c 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -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); diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc index 4d337ca4b..2e7341729 100644 --- a/plugins/admin/fai/class_faiScriptEntry.inc +++ b/plugins/admin/fai/class_faiScriptEntry.inc @@ -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."); } -- 2.30.2