summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe8033c)
raw | patch | inline | side by side (parent: fe8033c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Dec 2008 08:35:35 +0000 (08:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Dec 2008 08:35:35 +0000 (08:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13226 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/personal/mail/class_mailAccount.inc | patch | blob | history | |
gosa-plugins/mail/personal/mail/generic.tpl | patch | blob | history |
diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc
index d5b87ef2e9c3b370544a1e09cc4c8c86e754d48d..42e68ba2e4ca870e11dabc6b16a812bb49c2e3b5 100644 (file)
****************/
$smarty = get_smarty();
$smarty->assign("initially_was_account", $this->initially_was_account);
- $smarty->assign("isModifyableMail", $this->mailMethod->isModifyableMail());
+ $smarty->assign("isModifyableMail" , $this->mailMethod->isModifyableMail());
+ $smarty->assign("isModifyableServer", $this->mailMethod->isModifyableServer());
$smarty->assign("mailEqualsCN", $this->mailMethod->mailEqualsCN());
$SkipWrite = (!isset($this->parent) || !$this->parent) && !session::is_set('edit');
if (isset($_POST['mailTab'])){
/* Save ldap attributes */
- $mail = $this->mail;
+ $mail = $this->mail;
+ $server = $this->gosaMailServer;
plugin::save_object();
+ if(!$this->mailMethod->isModifyableServer() && $this->initially_was_account)){
+ $this->gosaMailServer = $server;
+ }
+
if(!$this->mailMethod->isModifyableMail() && $this->initially_was_account){
$this->mail = $mail;
}else{
diff --git a/gosa-plugins/mail/personal/mail/generic.tpl b/gosa-plugins/mail/personal/mail/generic.tpl
index 928909ecf00976f4f27a21a9ed64d77a63107a4c..82fedc4d8862b5624a70f4742288142d01ffc344 100644 (file)
<tr>
<td><label for="gosaMailServer">{t}Server{/t}</label></td>
<td>
- {if !$isModifyableMail && $initially_was_account}
+ {if !$isModifyableServer && $initially_was_account}
<input disabled size=30 value="{$gosaMailServer}">
{else}