Commit a71ed3a230973abbb86bb69e8a4678cb864654c3

Authored by michael
1 parent fe75e399

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 143 } else if ((isset($fForPublish)) && (!DocumentCollaboration::documentIsPendingWebPublishing($fDocumentID))) {
144 144 if ($fSubmit) {
145 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 148 if (strlen($fWebSiteID) > 0) {
150 149 $oWebDocument->setStatusID(PENDING);
... ...