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()); }