From 1b4992cdb45b078ffd29e5ee6e7eb8ba39e79a92 Mon Sep 17 00:00:00 2001 From: conradverm Date: Mon, 5 Mar 2007 11:12:45 +0000 Subject: [PATCH] KTS-1696 "when bulk deleting files in a sub folder, am redirected to root" Fixed. Will attempt to redirect back to folder last visited. --- lib/actions/bulkaction.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/actions/bulkaction.php b/lib/actions/bulkaction.php index fe9ae5c..7325576 100644 --- a/lib/actions/bulkaction.php +++ b/lib/actions/bulkaction.php @@ -312,6 +312,10 @@ class KTBulkAction extends KTStandardDispatcher { $sAction = 'main'; if($sReturnAction == 'browse') { + if ($sReturnData == '') + { + $sReturnData = KTUtil::arrayGet($_REQUEST, 'fFolderId'); + } $sTargetUrl = KTBrowseUtil::getUrlForFolder(Folder::get($sReturnData)); } else if($sReturnAction == 'simpleSearch') { $sTargetUrl = KTBrowseUtil::getSimpleSearchBaseUrl(); @@ -497,4 +501,4 @@ class KTBulkActionUtil { } } -?> \ No newline at end of file +?> -- libgit2 0.21.4