From 59d729ae730b0d07feccf6489a34bad6e90c8409 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Tue, 15 Jul 2003 10:00:14 +0000 Subject: [PATCH] (#2676) redirect to view document on checkout success (with param to trigger document download) --- presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php index 20ce2c6..667380e 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php @@ -80,8 +80,7 @@ if (checkSession()) { $default->log->info("checkOutDocumentBL.php fired $count subscription alerts for checked out document " . $oDocument->getName()); // display checkout success message in the document view page - //controllerRedirect("downloadDocument", "fDocumentID=$fDocumentID&fCheckedOut=1"); - $oPatternCustom->setHtml(getCheckOutPage($oDocument, true)); + controllerRedirect("viewDocument", "fDocumentID=$fDocumentID&fCheckedOut=1"); } else { // document update failed @@ -111,7 +110,6 @@ if (checkSession()) { $oPatternCustom->setHtml(renderErrorPage("No document is currently selected for check out")); } - require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); $main->setCentralPayload($oPatternCustom); $main->setFormAction($_SERVER["PHP_SELF"]); -- libgit2 0.21.4