From 2ed76ab2c332fa41bba5feed612e62998b84175d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 15 Mar 2011 09:15:47 +0000 Subject: [PATCH] Updated mailAccount to allow to modify the mail address for templates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20625 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/mail/personal/mail/class_mailAccount.inc | 8 ++++---- gosa-plugins/mail/personal/mail/generic.tpl | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc index bbb0021dd..333b44217 100644 --- a/gosa-plugins/mail/personal/mail/class_mailAccount.inc +++ b/gosa-plugins/mail/personal/mail/class_mailAccount.inc @@ -154,7 +154,7 @@ class mailAccount extends plugin /* Initialize configured values */ - if($this->is_account){ + if($this->is_account && !$this->is_template){ if($this->mailMethod->connect() && $this->mailMethod->account_exists()){ @@ -497,7 +497,7 @@ class mailAccount extends plugin */ $smarty->assign("spamlevel", $this->SpamLevels); $smarty->assign("spambox" , $this->MailBoxes); - + $smarty->assign("is_template", $this->is_template); $smarty->assign("multiple_support",$this->multiple_support_active); return($display.$smarty->fetch(get_template_path("generic.tpl",TRUE,dirname(__FILE__)))); } @@ -514,11 +514,11 @@ class mailAccount extends plugin $server = $this->gosaMailServer; plugin::save_object(); - if(!$this->mailMethod->isModifyableServer() && $this->initially_was_account){ + if(!$this->mailMethod->isModifyableServer() && $this->initially_was_account && !$this->is_template){ $this->gosaMailServer = $server; } - if(!$this->mailMethod->isModifyableMail() && $this->initially_was_account){ + if(!$this->mailMethod->isModifyableMail() && $this->initially_was_account && !$this->is_template){ $this->mail = $mail; }else{ diff --git a/gosa-plugins/mail/personal/mail/generic.tpl b/gosa-plugins/mail/personal/mail/generic.tpl index 82724c1f1..423a9aae5 100644 --- a/gosa-plugins/mail/personal/mail/generic.tpl +++ b/gosa-plugins/mail/personal/mail/generic.tpl @@ -9,7 +9,7 @@ {$must} - {if !$isModifyableMail && $initially_was_account} + {if !$isModifyableMail && $initially_was_account && !$is_template} {else} {if $domainSelectionEnabled} @@ -30,7 +30,7 @@ - {if !$isModifyableServer && $initially_was_account} + {if !$isModifyableServer && $initially_was_account && !$is_template} {else} -- 2.30.2