Code

Added some checks for copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 07:04:46 +0000 (07:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 07:04:46 +0000 (07:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2946 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_CopyPasteHandler.inc
include/class_tabs.inc

index e0a24e26a085382b2ae37f6723ed0677feafdd60..ee53a31684b919f7081bdf005f15fc6549b16789 100644 (file)
@@ -213,7 +213,9 @@ class CopyPasteHandler {
   {
     $ret = array();
     foreach($this->    current->by_object as $obj){
-      $ret = array_merge($ret , $obj->check());
+      if($obj->is_account){
+        $ret = array_merge($ret , $obj->check());
+      }
     }
 
     return($ret);
index 9c0ebfd560b258cee81aa4adebb47a101a4b341f..f6865b9d08a99008db3bb2a164f0c0a840f062e5 100644 (file)
@@ -251,7 +251,9 @@ class tabs
   function saveCopyDialog()
   {
          foreach ($this->by_object as $key => $obj){
-                 $this->by_object[$key]->saveCopyDialog();
+                 if($obj->is_account){
+                         $this->by_object[$key]->saveCopyDialog();
+                 }
          }
   }
 
@@ -262,7 +264,9 @@ class tabs
   {
          $ret = "";
          foreach ($this->by_object as $key => $obj){
-                 $ret .=  $this->by_object[$key]->getCopyDialog();
+                 if($obj->is_account){
+                         $ret .=  $this->by_object[$key]->getCopyDialog();
+                 }
          }
          return($ret);
   }