Commit 7ff0d22eab1deaae20366b28357c369bc8aa6080

Authored by michael
1 parent ee349a79

corrected conditions under which the archive button is shown


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2410 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
... ... @@ -401,7 +401,9 @@ function displayActionButtons($oDocument, $bEdit) {
401 401 }
402 402 $sToRender .= "<tr><td align=\"left\"><a href=\"" . generateControllerLink("viewDiscussion", "fDocumentID=" . $oDocument->getID() . "&fForDiscussion=1") . "\"><img src=\"$default->graphicsUrl/widgets/docactions/discussion.gif\" border=\"0\" /></a></td></tr>\n";
403 403 // only display the archive button for available documents
404   - if (!$oDocument->getIsCheckedOut() && !$oDocument->hasCollaboration() && (!DocumentCollaboration::documentCollaborationStarted($oDocument->getID()))) {
  404 + // if the document is not checked out
  405 + // and if the document is not in collaboration
  406 + if (!$oDocument->getIsCheckedOut() && (!$oDocument->hasCollaboration() || !DocumentCollaboration::documentCollaborationStarted($oDocument->getID()))) {
405 407 $sToRender .= "<tr><td align=\"left\"><a href=\"" . generateControllerLink("archiveDocument", "fDocumentID=" . $oDocument->getID()) . "\"><img src=\"$default->graphicsUrl/widgets/docactions/archive.gif\" border=\"0\" /></a></td></tr>\n";
406 408 } else {
407 409 $iDummyButtons++;
... ...