Code

Updated group mail
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Aug 2008 10:07:03 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Aug 2008 10:07:03 +0000 (10:07 +0000)
-Ensure that cn is set correctly.

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

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

index 277a1b230f8baa8b3cf0ef043f3c6760874f6297..49276bb49c4326029d73de992e8a9b5d44bbf89a 100644 (file)
@@ -72,6 +72,9 @@ class mailgroup extends plugin
     /* Initialise all available attributes ... if possible
      */
     plugin::plugin($config, $dn);
+    if (isset($this->attrs['cn'][0])){
+      $this->uid = $this->cn = $this->attrs['cn'][0];
+    }
     $this->orig_cn = $this->cn;
 
     /* Set mailMethod to the one defined in gosa.conf