From 744e7c575f39fa49c0b28b19b98261b7d2911871 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 22 Apr 2010 16:03:19 +0000 Subject: [PATCH] Keep the 'mail' attribute while fax delivery mode includes 'fax to mail' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17803 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/mail/personal/mail/class_mailAccount.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc index 5be08f558..b0c2024ca 100644 --- a/gosa-plugins/mail/personal/mail/class_mailAccount.inc +++ b/gosa-plugins/mail/personal/mail/class_mailAccount.inc @@ -798,6 +798,16 @@ class mailAccount extends plugin } } + // Do NOT remove the mail attribute while it is used in the Fax Account. + if(isset($this->parent->by_object['gofaxAccount'])){ + $fax = $this->parent->by_object['gofaxAccount']; + + // Fax delivery to the mail account is activated, keep the mail attribute. + if($fax->goFaxDeliveryMode & 32){ + $this->attributes = array_remove_entries(array('mail'), $this->attributes) ; + } + } + /* Remove GOsa attributes */ plugin::remove_from_parent(); -- 2.30.2