From 003f1e222fcf94b5db62db16dfabc18448d112cc Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 6 Jan 2010 13:45:49 +0000 Subject: [PATCH] Allow to disable cut or copy git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15087 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 e1440cfc1..3b83e0811 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -1146,7 +1146,9 @@ class listing { // Check for special types switch ($action['type']) { case 'copypaste': - $result.= $this->renderCopyPasteMenu($separator); + $cut = !isset($action['cut']) || $action['cut'] != "false"; + $copy = !isset($action['copy']) || $action['copy'] != "false"; + $result.= $this->renderCopyPasteMenu($separator, $copy , $cut); break; case 'snapshot': -- 2.30.2