From 91f7d8dfc3b55dd806a376c58b9a013455d2075f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 23 Apr 2015 16:45:19 +0200 Subject: [PATCH] show warning if document is checked out --- views/bootstrap/class.UpdateDocument.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/views/bootstrap/class.UpdateDocument.php b/views/bootstrap/class.UpdateDocument.php index 479d64c84..1e1adbb93 100644 --- a/views/bootstrap/class.UpdateDocument.php +++ b/views/bootstrap/class.UpdateDocument.php @@ -145,6 +145,12 @@ function checkForm() $msg .= "

".sprintf(getMLText('link_alt_updatedocument'), "out.AddMultiDocument.php?folderid=".$folder->getID()."&showtree=".showtree())."

"; } $this->warningMsg($msg); + + if ($document->isCheckedOut()) { + $msg = getMLText('document_is_checked_out'); + $this->warningMsg($msg); + } + $this->contentContainerStart(); ?>