Commit 9dfda7beb89402269254421962a40873588430b3
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
Showing
1 changed file
with
1 additions
and
2 deletions
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); | ... | ... |