Retrieve the attributes required for id generation if they are missing.
authorGunnar Wrobel <p@rdus.de>
Fri, 1 May 2009 12:59:39 +0000 (14:59 +0200)
committerGunnar Wrobel <p@rdus.de>
Fri, 1 May 2009 12:59:39 +0000 (14:59 +0200)
framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php

index 83cca6a..acb55aa 100644 (file)
@@ -113,6 +113,12 @@ class Horde_Kolab_Server_Object_Kolabgroupofnames extends Horde_Kolab_Server_Obj
                 && !isset($info[self::ATTRIBUTE_CN])) {
                 return false;
             }
+            if (!isset($info[self::ATTRIBUTE_MAIL])) {
+                $info[self::ATTRIBUTE_MAIL] = $this->get(self::ATTRIBUTE_MAIL);
+            }
+            if (!isset($info[self::ATTRIBUTE_CN])) {
+                $info[self::ATTRIBUTE_CN] = $this->get(self::ATTRIBUTE_CN);
+            }
         }
 
         if (isset($info[self::ATTRIBUTE_MAIL])) {