Commit e0f58d56d8793611946b815a7b48dab3bfda9055
1 parent
3629bfc6
(#2819) fixed check in button when document is checked out by someone else
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2454 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
4 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -360,10 +360,9 @@ function displayCheckInOutButton($oDocument, $bEdit) { |
| 360 | 360 | $sQueryString = "fDocumentID=" . $oDocument->getID(); |
| 361 | 361 | // display the check in button if the document is checked out and you checked the document out |
| 362 | 362 | if ($oDocument->getIsCheckedOut()) { |
| 363 | - if ($oDocument->getCheckedOutUserID() == $_SESSION["userID"]) { | |
| 364 | - $sAction = "checkInDocument"; | |
| 365 | - $sImageName = "checkin"; | |
| 366 | - } else { | |
| 363 | + $sAction = "checkInDocument"; | |
| 364 | + $sImageName = "checkin"; | |
| 365 | + if ($oDocument->getCheckedOutUserID() <> $_SESSION["userID"]) { | |
| 367 | 366 | $oUser = User::get($oDocument->getCheckedOutUserID()); |
| 368 | 367 | $sDisabledText = "The document can only be checked back in by " . $oUser->getName(); |
| 369 | 368 | } | ... | ... |