From: hickert Date: Fri, 12 Sep 2008 12:27:52 +0000 (+0000) Subject: Updated NFS Shares. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e416084aba07fc589f2743305cec2bb1cee10885;p=gosa.git Updated NFS Shares. -Share type must be set, if we do not have the acls to set the type, abort saving -> check() git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12449 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc b/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc index f2411ac9c..147cc912c 100644 --- a/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc +++ b/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc @@ -12,7 +12,7 @@ class servnfs extends plugin var $description =""; // description var $type =""; // Type FS/Samba/NCP var $charset =""; // charset - var $host =""; // hostname + var $host =""; // hostname var $types =array(); // Array Types NFS/Samba/NCP/netatalk var $charsets =array(); // Array with charsets var $path =""; // Path @@ -182,6 +182,10 @@ class servnfs extends plugin $message[]= _("'Path / Volume' must contain at least one '/'!"); } + if(!in_array($this->type,$this->types)){ + $message[]= msgPool::required(_("Type")); + } + // only 0-9a-z if(!$this->is_edit){ if(empty($this->name)){