From 9dfda7beb89402269254421962a40873588430b3 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Wed, 30 Jul 2003 11:05:27 +0000 Subject: [PATCH] changed web document lookup code --- presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php index 6211517..ceae1c4 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php @@ -143,8 +143,7 @@ if (checkSession()) { } else if ((isset($fForPublish)) && (!DocumentCollaboration::documentIsPendingWebPublishing($fDocumentID))) { if ($fSubmit) { // user wishes to publish document - $aWebDocument = WebDocument::getList("document_id = $fDocumentID"); - $oWebDocument = $aWebDocument[0]; + $aWebDocument = WebDocument::get(lookupID($default->owl_web_documents_table, "document_id", $fDocumentID)); if (strlen($fWebSiteID) > 0) { $oWebDocument->setStatusID(PENDING); -- libgit2 0.21.4