Commit 14da4ecc808755ce8328373a1335eda2d6d17912
1 parent
5f1b2ad6
Cater for pathInfoSupport being false.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4421 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
1 deletions
plugins/ktcore/KTDocumentActions.php
| ... | ... | @@ -329,7 +329,12 @@ class KTDocumentMoveColumn extends TitleColumn { |
| 329 | 329 | } |
| 330 | 330 | function buildFolderLink($aDataRow) { |
| 331 | 331 | $baseurl = KTUtil::arrayGet($this->aOptions, "folderurl", ""); |
| 332 | - return sprintf('%s?fDocumentId=%d&fFolderId=%d', $baseurl, $this->oDocument->getId(), $aDataRow["folder"]->getId()); | |
| 332 | + $kt_path_info = KTUtil::arrayGet($_REQUEST, 'kt_path_info'); | |
| 333 | + if (empty($kt_path_info)) { | |
| 334 | + return sprintf('%s?fDocumentId=%d&fFolderId=%d', $baseurl, $this->oDocument->getId(), $aDataRow["folder"]->getId()); | |
| 335 | + } else { | |
| 336 | + return sprintf('%s?kt_path_info=%s&fDocumentId=%d&fFolderId=%d', $baseurl, $kt_path_info, $this->oDocument->getId(), $aDataRow["folder"]->getId()); | |
| 337 | + } | |
| 333 | 338 | } |
| 334 | 339 | } |
| 335 | 340 | ... | ... |