From e0f58d56d8793611946b815a7b48dab3bfda9055 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Wed, 30 Jul 2003 13:19:15 +0000 Subject: [PATCH] (#2819) fixed check in button when document is checked out by someone else --- presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index 538fff6..e0747dd 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -360,10 +360,9 @@ function displayCheckInOutButton($oDocument, $bEdit) { $sQueryString = "fDocumentID=" . $oDocument->getID(); // display the check in button if the document is checked out and you checked the document out if ($oDocument->getIsCheckedOut()) { - if ($oDocument->getCheckedOutUserID() == $_SESSION["userID"]) { - $sAction = "checkInDocument"; - $sImageName = "checkin"; - } else { + $sAction = "checkInDocument"; + $sImageName = "checkin"; + if ($oDocument->getCheckedOutUserID() <> $_SESSION["userID"]) { $oUser = User::get($oDocument->getCheckedOutUserID()); $sDisabledText = "The document can only be checked back in by " . $oUser->getName(); } -- libgit2 0.21.4