From 53b18b7cdcd264ef37697eb5b2a96157d07c9d17 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Apr 2006 07:04:46 +0000 Subject: [PATCH] Added some checks for copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2946 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_CopyPasteHandler.inc | 4 +++- include/class_tabs.inc | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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); } -- 2.30.2