Commit 17d86252a000491a21d334bf027285088b2e64f6

Authored by Michael Joseph
1 parent 751957a3

(#2806) correct condition for publish button showing


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2474 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
@@ -460,7 +460,7 @@ function displayDependantDocumentButton($oDocument, $bEdit) { @@ -460,7 +460,7 @@ function displayDependantDocumentButton($oDocument, $bEdit) {
460 460
461 function displayPublishButton($oDocument, $bEdit) { 461 function displayPublishButton($oDocument, $bEdit) {
462 // only display the publish button for unpublished documents 462 // only display the publish button for unpublished documents
463 - if (!DocumentCollaboration::documentIsPendingWebPublishing($oDocument->getID())) { 463 + if (DocumentCollaboration::documentIsPendingWebPublishing($oDocument->getID())) {
464 // if there is collaboration 464 // if there is collaboration
465 if ($oDocument->hasCollaboration()) { 465 if ($oDocument->hasCollaboration()) {
466 // only display publish button if collaboration is complete and you're the last user in the collaboration process (or a sysadmin) 466 // only display publish button if collaboration is complete and you're the last user in the collaboration process (or a sysadmin)