Code

Made fields not mandatory
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 13:54:55 +0000 (13:54 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 13:54:55 +0000 (13:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3301 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servNfs.inc
plugins/admin/systems/servnfs.tpl

index df90c6b69f6626c4894b7c6daa70fce8fc2fb179..e89bab3ea9e939c26340ba83a4a0a27a576fb302 100644 (file)
@@ -189,11 +189,6 @@ class servnfs extends plugin
       }
     }
 
-    /* If we've NCP, we need a volume */
-    if($this->type == "NCP" && empty($this->volume)){
-      $message[]=_("Please specify a valid volume name for your share.");
-    }
-
     if(preg_match("/\|/",$this->description)){
       $message[]=_("Description contains invalid characters.");
     }
index dcea65b3f5b211b4fcb55bb2121c026d877236e6..5d8000e4ced76754b327e6dd43599da1a2dfa934 100644 (file)
@@ -22,7 +22,7 @@
                                </tr>
                                <tr>
                                        <td>
-                                               {t}Path{/t} {$must}
+                                               {t}Path{/t}
                                        </td>
                                        <td>
                                                <input type="text" size="40" name="path" value="{$path}">
@@ -30,7 +30,7 @@
                                </tr>
                                <tr>
                                        <td>
-                                               <div id="vlabel">{t}Volume{/t} {$must}</div>
+                                               <div id="vlabel">{t}Volume{/t}</div>
                                        </td>
                                        <td>
                                                <input type="text" id="volume" size="40" name="volume" value="{$volume}">