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.
This commit is contained in:
gulikoza 2016-01-24 11:56:44 +01:00
parent 0b8375fd2a
commit 726190e5b8

View File

@ -63,7 +63,7 @@ if ($request['recursive']) {
print '</small>';
} 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);