From 0bac3deabbcb14a4b5e05b7017902cbd8cc96407 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 23 Apr 2015 16:44:16 +0200 Subject: [PATCH] show message and hide form if document cannot be checked in --- views/bootstrap/class.CheckInDocument.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.CheckInDocument.php b/views/bootstrap/class.CheckInDocument.php index 761bf0a3b..daba7eb15 100644 --- a/views/bootstrap/class.CheckInDocument.php +++ b/views/bootstrap/class.CheckInDocument.php @@ -144,6 +144,9 @@ function checkForm() break; } } + $checkoutinfo = $document->getCheckOutInfo(); + + if($checkoutstatus == 0) { $latestContent = $document->getLatestContent(); $reviewStatus = $latestContent->getReviewStatus(); @@ -531,13 +534,20 @@ function checkForm() ?> - "> + "> contentContainerEnd(); + } else { +?> +
+ + "> +htmlEndPage(); } /* }}} */ }