Commit 47fef5ffb088fcd8449db2ef13cedd4331b78cc3

Authored by Conrad Vermeulen
1 parent 1c6d0528

KTS-1696

"when bulk deleting files in a sub folder, am redirected to root"
Fixed. Will attempt to redirect back to folder last visited.

Reviewed By: Kevin Fourie


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6366 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 5 additions and 1 deletions
lib/actions/bulkaction.php
... ... @@ -312,6 +312,10 @@ class KTBulkAction extends KTStandardDispatcher {
312 312 $sAction = 'main';
313 313  
314 314 if($sReturnAction == 'browse') {
  315 + if ($sReturnData == '')
  316 + {
  317 + $sReturnData = KTUtil::arrayGet($_REQUEST, 'fFolderId');
  318 + }
315 319 $sTargetUrl = KTBrowseUtil::getUrlForFolder(Folder::get($sReturnData));
316 320 } else if($sReturnAction == 'simpleSearch') {
317 321 $sTargetUrl = KTBrowseUtil::getSimpleSearchBaseUrl();
... ... @@ -497,4 +501,4 @@ class KTBulkActionUtil {
497 501 }
498 502 }
499 503  
500   -?>
501 504 \ No newline at end of file
  505 +?>
... ...