Commit 6daff97ec9d23a5ad79e74d355aed3ef1c832d82
1 parent
a3974c88
(#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
Showing
1 changed file
with
1 additions
and
1 deletions
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) |