Code

Updated kolab delegate addon (connectivity)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Oct 2008 08:08:42 +0000 (08:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Oct 2008 08:08:42 +0000 (08:08 +0000)
-Copy & paste assumed that "connectivity kolab" was a valid account, if the mailmethod kolab was used.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12713 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc

index 4dd3532e95e92e334274cea11b94296cbb0dc056..a777f19c2ed8132f6db4d0f594fdbfa969894810 100644 (file)
@@ -564,9 +564,6 @@ class kolabAccount extends plugin
     if(in_array("kolabState",$this->multi_boxes)){
       $ret['is_account'] = $this->is_account;
     }
     if(in_array("kolabState",$this->multi_boxes)){
       $ret['is_account'] = $this->is_account;
     }
-
-    print_a($ret);
-  
     return($ret);
   }
 
     return($ret);
   }
 
@@ -662,7 +659,16 @@ class kolabAccount extends plugin
     }
   }
 
     }
   }
 
+  function PrepareForCopyPaste($source)
+  {
+    plugin::PrepareForCopyPaste($source);
+
+    $this->is_account = FALSE;
 
 
+    if(isset($source['kolabDelegate']) || isset($source['calFBURL'])){
+      $this->is_account = TRUE;
+    }
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: