Commit 9dfda7beb89402269254421962a40873588430b3

Authored by Michael Joseph
1 parent 0651dd83

changed web document lookup code


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2451 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php
@@ -143,8 +143,7 @@ if (checkSession()) { @@ -143,8 +143,7 @@ if (checkSession()) {
143 } else if ((isset($fForPublish)) && (!DocumentCollaboration::documentIsPendingWebPublishing($fDocumentID))) { 143 } else if ((isset($fForPublish)) && (!DocumentCollaboration::documentIsPendingWebPublishing($fDocumentID))) {
144 if ($fSubmit) { 144 if ($fSubmit) {
145 // user wishes to publish document 145 // user wishes to publish document
146 - $aWebDocument = WebDocument::getList("document_id = $fDocumentID");  
147 - $oWebDocument = $aWebDocument[0]; 146 + $aWebDocument = WebDocument::get(lookupID($default->owl_web_documents_table, "document_id", $fDocumentID));
148 147
149 if (strlen($fWebSiteID) > 0) { 148 if (strlen($fWebSiteID) > 0) {
150 $oWebDocument->setStatusID(PENDING); 149 $oWebDocument->setStatusID(PENDING);