issue warning when deleting a checked out document

This commit is contained in:
Uwe Steinmann 2020-11-22 11:39:57 +01:00
parent ffef8d2417
commit ab438f18d9
3 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@
- merge changes up to 5.1.21
- document links can be added by regular users again
- add list of checked out documents to tasks
- issue a warning when removing a document with is checked out
--------------------------------------------------------------------------------
Changes in version 6.0.13

View File

@ -43,6 +43,10 @@ class SeedDMS_View_RemoveDocument extends SeedDMS_Bootstrap_Style {
$this->contentStart();
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
$this->contentHeading(getMLText("rm_document"));
if ($document->isCheckedOut()) {
$msg = getMLText('document_is_checked_out_remove');
$this->warningMsg($msg);
}
$this->contentContainerStart('warning');
?>

View File

@ -225,7 +225,7 @@ console.log(element);
$this->warningMsg($msg);
if ($document->isCheckedOut()) {
$msg = getMLText('document_is_checked_out');
$msg = getMLText('document_is_checked_out_update');
$this->warningMsg($msg);
}