Code

Ensure that new groups have a correct shared folder created.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Sep 2008 12:40:41 +0000 (12:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Sep 2008 12:40:41 +0000 (12:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12343 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/admin/groups/mail/class_groupMail.inc

index 0c3afb897f0cf78b4b17ecedae3026c9982d359d..3ebe161df7405cc23997dbae02afd15df23aafff 100644 (file)
@@ -896,6 +896,11 @@ I: Only insider delivery */
 
     /* Call parents save to prepare $this->attrs */
     plugin::save();
+   
+    /* Update sharefolder account name */ 
+    if(isset($this->parent->by_object['group']->cn)) {
+      $this->account_name = $this->parent->by_object['group']->cn;
+    }
 
     /* Save arrays */
     $this->attrs['gosaMailAlternateAddress']  = $this->gosaMailAlternateAddress;