diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index 93a6e0b..1fe3337 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -193,6 +193,15 @@ function getEditPage($oDocument) { $sToRender .= "\n"; $sToRender .= "
| getID()) . "\"> | \n";
+ // otherwise display the check out button
+ } else {
+ $sToRender .= "getID()) . "\"> | \n";
+ }
+
if ($default->phpSniff->property("browser") == "ie") {
$sToRender .= "serverName . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\"> | \n";
} else {
@@ -202,14 +211,7 @@ function getEditPage($oDocument) {
$sToRender .= "getID()) . "\"> | \n";
$sToRender .= "getID()) . "\"> | \n";
- // display the check in button if the document is checked out and you checked the document out
- if ($oDocument->getIsCheckedOut() && ($oDocument->getCheckedOutUserID() == $_SESSION["userID"])) {
- $sToRender .= "getID()) . "\"> | \n";
- // otherwise display the check out button
- } else {
- $sToRender .= "getID()) . "\"> | \n";
- }
-
+
// display the unsubscribe button if the user is subscribed to the document
if (Subscription::exists($_SESSION["userID"], $oDocument->getID(), SubscriptionConstants::subscriptionType("DocumentSubscription"))) {
$sToRender .= "getID()) . "\"> | \n";