Commit 47fef5ffb088fcd8449db2ef13cedd4331b78cc3
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,6 +312,10 @@ class KTBulkAction extends KTStandardDispatcher { | ||
| 312 | $sAction = 'main'; | 312 | $sAction = 'main'; |
| 313 | 313 | ||
| 314 | if($sReturnAction == 'browse') { | 314 | if($sReturnAction == 'browse') { |
| 315 | + if ($sReturnData == '') | ||
| 316 | + { | ||
| 317 | + $sReturnData = KTUtil::arrayGet($_REQUEST, 'fFolderId'); | ||
| 318 | + } | ||
| 315 | $sTargetUrl = KTBrowseUtil::getUrlForFolder(Folder::get($sReturnData)); | 319 | $sTargetUrl = KTBrowseUtil::getUrlForFolder(Folder::get($sReturnData)); |
| 316 | } else if($sReturnAction == 'simpleSearch') { | 320 | } else if($sReturnAction == 'simpleSearch') { |
| 317 | $sTargetUrl = KTBrowseUtil::getSimpleSearchBaseUrl(); | 321 | $sTargetUrl = KTBrowseUtil::getSimpleSearchBaseUrl(); |
| @@ -497,4 +501,4 @@ class KTBulkActionUtil { | @@ -497,4 +501,4 @@ class KTBulkActionUtil { | ||
| 497 | } | 501 | } |
| 498 | } | 502 | } |
| 499 | 503 | ||
| 500 | -?> | ||
| 501 | \ No newline at end of file | 504 | \ No newline at end of file |
| 505 | +?> |