From: Gunnar Wrobel
Date: Thu, 30 Apr 2009 12:28:30 +0000 (+0200) Subject: Fix id generation for modifications. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=369285f94e862b86f8851eacab4724129710fea2;p=horde.git Fix id generation for modifications. --- diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php index cff55ae1d..83cca6a19 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php @@ -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 {