Code

Updated mail method kolab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Sep 2009 09:58:00 +0000 (09:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Sep 2009 09:58:00 +0000 (09:58 +0000)
-There was a problem with the removal of alternate addresses.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14228 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc

index 46765aa94dc63ee9cda553b4973c1bd5f97d22c4..d0374ee4f16901ca68556beda8d5e6b330ba3128 100644 (file)
@@ -62,6 +62,12 @@ class mailMethodKolab extends mailMethodCyrus
   public function fixAttributesOnLoad()
   {
     mailMethodCyrus::fixAttributesOnLoad();
+
+    // Tell our parent that there is a relatioship between alias and
+    //  gosaMailAlternateAddress.  (Avoid plugin::cleanup to filter out alias).
+    if(isset($this->parent->saved_attributes['gosaMailAlternateAddress'])){
+      $this->parent->saved_attributes['alias'] = $this->parent->saved_attributes['gosaMailAlternateAddress'];
+    }
   }
 
   public function fixAttributesOnStore()