Commit 59d729ae730b0d07feccf6489a34bad6e90c8409
1 parent
ebc35e27
(#2676) redirect to view document on checkout success (with param to trigger document download)
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2375 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
3 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php
| ... | ... | @@ -80,8 +80,7 @@ if (checkSession()) { |
| 80 | 80 | $default->log->info("checkOutDocumentBL.php fired $count subscription alerts for checked out document " . $oDocument->getName()); |
| 81 | 81 | |
| 82 | 82 | // display checkout success message in the document view page |
| 83 | - //controllerRedirect("downloadDocument", "fDocumentID=$fDocumentID&fCheckedOut=1"); | |
| 84 | - $oPatternCustom->setHtml(getCheckOutPage($oDocument, true)); | |
| 83 | + controllerRedirect("viewDocument", "fDocumentID=$fDocumentID&fCheckedOut=1"); | |
| 85 | 84 | |
| 86 | 85 | } else { |
| 87 | 86 | // document update failed |
| ... | ... | @@ -111,7 +110,6 @@ if (checkSession()) { |
| 111 | 110 | $oPatternCustom->setHtml(renderErrorPage("No document is currently selected for check out")); |
| 112 | 111 | } |
| 113 | 112 | |
| 114 | - | |
| 115 | 113 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 116 | 114 | $main->setCentralPayload($oPatternCustom); |
| 117 | 115 | $main->setFormAction($_SERVER["PHP_SELF"]); | ... | ... |