From 668fa73cf7d403bf4cc4c8be2056e1a0fc13cc1c Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 10 Sep 2003 14:18:27 +0000 Subject: [PATCH] (#2975) redirect to type specific edit page when document type changes --- presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php index 69f5a78..f4bad42 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php @@ -62,6 +62,7 @@ if (checkSession()) { //get rid of all the old document type entries $oDocument->removeInvalidDocumentTypeEntries(); $oDocument->setDocumentTypeID($fDocumentTypeID); + $bUpdateMetaData = true; } if ($oDocument->update()) { @@ -73,8 +74,8 @@ if (checkSession()) { $default->log->info("modifyBL.php fired $count subscription alerts for modified document " . $oDocument->getName()); //on successful update, redirect to the view page - if (isset($fFirstEdit)) { - controllerRedirect("modifyDocumentGenericMetaData", "fDocumentID=" . $oDocument->getID() . "&fFirstEdit=1"); + if (isset($bUpdateMetaData)) { + controllerRedirect("modifyDocumentTypeMetaData", "fDocumentID=" . $oDocument->getID() . "&fFirstEdit=1"); } else { controllerRedirect("viewDocument", "fDocumentID=" . $oDocument->getID()); } -- libgit2 0.21.4