From: hickert Date: Fri, 28 Nov 2008 09:09:19 +0000 (+0000) Subject: Updated sambaAccount - Couldn't set Logon hours in adminitration->users->samba X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=343312a4079c4649065a6228550848f1184ed97a;p=gosa.git Updated sambaAccount - Couldn't set Logon hours in adminitration->users->samba Updated goImap-Service trim spaces from connect uris git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13063 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc b/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc index e324d0c83..7652c26fb 100644 --- a/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc +++ b/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc @@ -108,10 +108,11 @@ class goImapServer extends goService { $message = plugin::check(); if(empty($this->goImapName)){ $message[] = msgPool::required(_("Server identifier")); - } + } + if(empty($this->goImapConnect)){ $message[] = msgPool::required(_("Connect URL")); - }elseif(!preg_match('/^\{[^:]+:[0-9]+.*\}$/', $this->goImapConnect)){ + }elseif(!preg_match('/^\{[^:]+:[0-9]*\/.*\}$/', $this->goImapConnect)){ $message[]= msgPool::invalid(_("Connect URL"),"","","{server-name:port/options}"); } @@ -154,6 +155,8 @@ class goImapServer extends goService { } } } + $this->goImapConnect = trim($this->goImapConnect); + $this->goImapSieveServer = trim($this->goImapSieveServer); } } diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index e366f9848..9b32cd88b 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -282,7 +282,7 @@ class sambaAccount extends plugin $smarty->assign($var."ACL",$this->getacl($var,$SkipWrite)); } - if(!session::is_set('edit')){ + if(!session::is_set('edit') && !isset($this->parent)){ $smarty->assign("sambaLogonHoursACL",""); }