From 7ffc064e8bc7e23c49bf33e7c3c055b2dd90cb27 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Thu, 13 Mar 2003 08:44:43 +0000 Subject: [PATCH] fixed controller link method updated web publishing to email comment --- presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php index 50cf1d6..18ec48f 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php @@ -134,7 +134,7 @@ if (checkSession()) { // TODO: create a transaction? $oUser = User::get($oDocument->getCreatorID()); - $sBody = $oUser->getUserName() . ", the collaboration process for the document, '" . getControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), $oDocument->getName()) . "', has been completed. "; + $sBody = $oUser->getUserName() . ", the collaboration process for the document, '" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), $oDocument->getName()) . "', has been completed. "; $oEmail = & new Email(); $oEmail->send($oUser->getEmail(), "Document collaboration complete", $sBody); @@ -171,7 +171,7 @@ if (checkSession()) { $oDocumentTransaction = & new DocumentTransaction($fDocumentID, "Document sent for web publishing", UPDATE); $oDocumentTransaction->create(); $oDocument = Document::get($fDocumentID); - Document::notifyWebMaster($fDocumentID); + Document::notifyWebMaster($fDocumentID, $fComment); $oPatternCustom = & new PatternCustom(); $oPatternCustom->setHtml(getEditPage($oDocument)); $main->setCentralPayload($oPatternCustom); @@ -205,6 +205,7 @@ if (checkSession()) { $oPatternCustom->setHtml(getWebPublishPage($oDocument)); $main->setCentralPayload($oPatternCustom); $main->setFormAction($_SERVER['PHP_SELF']); + $main->setHasRequiredFields(true); $main->render(); } -- libgit2 0.21.4