Fix id generation for modifications.
authorGunnar Wrobel <p@rdus.de>
Thu, 30 Apr 2009 12:28:30 +0000 (14:28 +0200)
committerGunnar Wrobel <p@rdus.de>
Thu, 30 Apr 2009 12:28:30 +0000 (14:28 +0200)
framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php

index cff55ae..83cca6a 100644 (file)
@@ -108,6 +108,13 @@ class Horde_Kolab_Server_Object_Kolabgroupofnames extends Horde_Kolab_Server_Obj
      */
     public function generateId($info)
     {
+        if ($this->exists()) {
+            if (!isset($info[self::ATTRIBUTE_MAIL])
+                && !isset($info[self::ATTRIBUTE_CN])) {
+                return false;
+            }
+        }
+
         if (isset($info[self::ATTRIBUTE_MAIL])) {
             $id = $info[self::ATTRIBUTE_MAIL];
         } else {