From dfd83bb4b358a8090fa53aa5af1940552d11a02f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Nov 2008 13:50:35 +0000 Subject: [PATCH] Updated samba Account -sambaHomePath and Drive can be empty. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13047 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/samba/class_sambaAccount.inc | 10 +++++++++- plugins/personal/samba/samba3.tpl | 2 -- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index 44b8c1814..e596081a2 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -467,7 +467,7 @@ class sambaAccount extends plugin } $smarty->assign("domains", $domains); } - $letters= array(); + $letters= array(""); for ($i= 68; $i<91; $i++){ $letters[]= chr($i).":"; } @@ -698,6 +698,14 @@ class sambaAccount extends plugin if ($this->samba3){ + /* sambaHomePath requires sambaHomeDrive and vice versa */ + if(!empty($this->sambaHomePath) && empty($this->sambaHomeDrive)){ + $message[]= sprintf(_("Please select a value for 'Home drive'.")); + } + if(!empty($this->sambaHomeDrive) && empty($this->sambaHomePath)){ + $message[]= sprintf(_("Please specify a value for 'Home path'.")); + } + /* Strings */ foreach (array( "sambaHomePath" => _("Home directory"), "sambaProfilePath" => _("Profile path")) as $key => $val){ diff --git a/plugins/personal/samba/samba3.tpl b/plugins/personal/samba/samba3.tpl index 0c07033a0..2bfcf2093 100644 --- a/plugins/personal/samba/samba3.tpl +++ b/plugins/personal/samba/samba3.tpl @@ -14,7 +14,6 @@ @@ -95,7 +94,6 @@ -- 2.30.2