diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index f9d84f1..b5fa752 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -358,7 +358,10 @@ function displayActionButtons($oDocument, $bEdit) { } $sToRender .= "graphicsUrl/widgets/docactions/history.gif\" border=\"0\" />\n"; if ($bEdit) { - $sToRender .= "graphicsUrl/widgets/docactions/move.gif\" border=\"0\" />\n"; + // documents in collaboration and checked out documents can't be moved + if (!$oDocument->getIsCheckedOut() && (!DocumentCollaboration::documentCollaborationStarted($oDocument->getID()))) { + $sToRender .= "graphicsUrl/widgets/docactions/move.gif\" border=\"0\" />\n"; + } } // display the unsubscribe button if the user is subscribed to the document @@ -370,7 +373,7 @@ 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 (!$oDocument->getIsCheckedOut() && !$oDocument->hasCollaboration() && (!DocumentCollaboration::documentCollaborationStarted($oDocument->getID()))) { $sToRender .= "graphicsUrl/widgets/docactions/archive.gif\" border=\"0\" />\n"; } $sToRender .= "graphicsUrl/widgets/docactions/dependentdoc.gif\" border=\"0\" />\n";