From 44d11c625d5f7c76e6cb83822e64aab9d4d63c15 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Jun 2005 11:14:19 +0000 Subject: [PATCH] some changes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@802 594d385d-05f5-0310-b6e9-bd551577e9d8 --- TODO | 5 ---- .../macro/class_gofonMacroParameters.inc | 1 + plugins/personal/mail/class_mailAccount.inc | 28 +++++++++++++------ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/TODO b/TODO index 70a10b06a..91caf6cf5 100644 --- a/TODO +++ b/TODO @@ -6,11 +6,6 @@ Things to fix before 2.4: - shared folders - Kolab disabled -> check. Check is_account! -* Check moving of servers - -* Check for empty mail server settings in mail tab - - Target for 2.5: =============== diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc index 6013439a2..9eaaab934 100755 --- a/plugins/gofon/macro/class_gofonMacroParameters.inc +++ b/plugins/gofon/macro/class_gofonMacroParameters.inc @@ -1,4 +1,5 @@ config->data['SERVERS']['IMAP'] as $key => $val){ + $mailserver[]= $key; + } + + /* Do we need to flip is_account state? */ if (isset($_POST['modify_state'])){ $this->is_account= !$this->is_account; } + /* Show main page */ + $mailserver= array(); + foreach ($this->config->data['SERVERS']['IMAP'] as $key => $val){ + $mailserver[]= $key; + } + + /* Do we represent a valid account? */ if (!$this->is_account && $this->parent == NULL){ $display= "\"\" ". _("This account has no mail extensions.").""; + $display.= back_to_main(); return ($display); } @@ -197,8 +211,7 @@ class mailAccount extends plugin $display= $this->show_header(_("Remove mail account"), _("This account has mail features enabled. You can disable them by clicking below.")); } else { - $display= $this->show_header(_("Create mail account"), - _("This account has mail features disabled. You can enable them by clicking below.")); + $display= $this->show_header(_("Create mail account"), _("This account has mail features disabled. You can enable them by clicking below.")); return ($display); } } @@ -419,11 +432,6 @@ class mailAccount extends plugin return ($display); } - /* Show main page */ - $mailserver= array(); - foreach ($this->config->data['SERVERS']['IMAP'] as $key => $val){ - $mailserver[]= $key; - } $smarty->assign("mailServers", $mailserver); foreach(array("gosaMailServer", "gosaMailQuota", "perms", "mail", "gosaMailAlternateAddress", "gosaMailForwardingAddress", @@ -665,6 +673,10 @@ class mailAccount extends plugin $message= array(); + if(empty($this->gosaMailServer)){ + $message[]= _("There is no valid mailserver specified, please add one in the system setup."); + } + /* must: mail */ if ($this->mail == ""){ $message[]= _("The required field 'Primary address' is not set."); -- 2.30.2