From 369285f94e862b86f8851eacab4724129710fea2 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Thu, 30 Apr 2009 14:28:30 +0200 Subject: [PATCH] Fix id generation for modifications. --- .../lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 { -- 2.11.0