From 726190e5b81a201e71e57a2170b695c332586e57 Mon Sep 17 00:00:00 2001 From: gulikoza Date: Sun, 24 Jan 2016 11:56:44 +0100 Subject: [PATCH] Fix moving entries when confirm['copy'] is set. If 'Delete after copy (move)' is selected and confirm['copy'] is set (which is default), the entry will be copyied (created) not moved. This patch will skip confirm when entry is being moved as there is no reason to confirm the move again. --- htdocs/copy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/copy.php b/htdocs/copy.php index 34d1512..fad7d92 100644 --- a/htdocs/copy.php +++ b/htdocs/copy.php @@ -63,7 +63,7 @@ if ($request['recursive']) { print ''; } else { - if ($_SESSION[APPCONFIG]->getValue('confirm','copy')) { + if ($_SESSION[APPCONFIG]->getValue('confirm','copy') && !$request['remove']) { $request['pageSRC'] = new TemplateRender($ldap['SRC']->getIndex(),get_request('template','REQUEST',false,null)); $request['pageSRC']->setDN($request['dnSRC']); $request['pageSRC']->accept(true);