From 850453cd6fd3f60ccc563fe15956803b2ddade88 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Wed, 23 Jul 2003 07:32:31 +0000 Subject: [PATCH] corrected conditions under which the archive button is shown --- presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index f847ba3..7e8b102 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -401,7 +401,9 @@ function displayActionButtons($oDocument, $bEdit) { } $sToRender .= "graphicsUrl/widgets/docactions/discussion.gif\" border=\"0\" />\n"; // only display the archive button for available documents - if (!$oDocument->getIsCheckedOut() && !$oDocument->hasCollaboration() && (!DocumentCollaboration::documentCollaborationStarted($oDocument->getID()))) { + // if the document is not checked out + // and if the document is not in collaboration + if (!$oDocument->getIsCheckedOut() && (!$oDocument->hasCollaboration() || !DocumentCollaboration::documentCollaborationStarted($oDocument->getID()))) { $sToRender .= "graphicsUrl/widgets/docactions/archive.gif\" border=\"0\" />\n"; } else { $iDummyButtons++; -- libgit2 0.21.4