From: hickert Date: Mon, 3 Apr 2006 07:04:46 +0000 (+0000) Subject: Added some checks for copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53b18b7cdcd264ef37697eb5b2a96157d07c9d17;p=gosa.git Added some checks for copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2946 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index e0a24e26a..ee53a3168 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -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); diff --git a/include/class_tabs.inc b/include/class_tabs.inc index 9c0ebfd56..f6865b9d0 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -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); }