Code

Removed attribute 'macro', it will cause an error when deleting entries, with macros
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 06:25:37 +0000 (06:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 06:25:37 +0000 (06:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@862 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index 1dc4a8d2566f4befe20379f8e980e5337f26c421..0181f5763374ae5749cebbdb67a6e85064af5a59 100644 (file)
@@ -577,6 +577,11 @@ class phoneAccount extends plugin
 
   function remove_from_parent()
   {
+    /* unset macro attr, it will cause an error */
+    $tmp = array_flip($this->attributes);
+    unset($tmp['macro']);
+    $this->attributes=array_flip($tmp);
+  
     /* Cancel if there's nothing to do here */
     if (!$this->initially_was_account){
       return;