From 676a68a8696a1bab8fb8cce592d00995a4127421 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 6 Jan 2010 11:22:35 +0000 Subject: [PATCH] Allow to disable cut or copy actions in listings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15081 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 5c5e9c43d..e1440cfc1 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -881,7 +881,9 @@ class listing { } if ($action['type'] == "copypaste") { - $result.= $this->renderCopyPasteActions($row, $this->entries[$row]['dn'], $category, $class); + $copy = !isset($action['copy']) || $action['copy'] == "true"; + $cut = !isset($action['cut']) || $action['cut'] == "true"; + $result.= $this->renderCopyPasteActions($row, $this->entries[$row]['dn'], $category, $class,$copy,$cut); } else { $result.= $this->renderSnapshotActions($row, $this->entries[$row]['dn'], $category, $class); } -- 2.30.2