From fe050399654cc04f885678e539b5f48fe62a4ed7 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Fri, 1 May 2009 14:59:39 +0200 Subject: [PATCH] Retrieve the attributes required for id generation if they are missing. --- .../lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php | 6 ++++++ 1 file changed, 6 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 83cca6a19..acb55aa2c 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Kolabgroupofnames.php @@ -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])) { -- 2.11.0