mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
issue warning when deleting a checked out document
This commit is contained in:
parent
ffef8d2417
commit
ab438f18d9
|
@ -5,6 +5,7 @@
|
||||||
- merge changes up to 5.1.21
|
- merge changes up to 5.1.21
|
||||||
- document links can be added by regular users again
|
- document links can be added by regular users again
|
||||||
- add list of checked out documents to tasks
|
- 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
|
Changes in version 6.0.13
|
||||||
|
|
|
@ -43,6 +43,10 @@ class SeedDMS_View_RemoveDocument extends SeedDMS_Bootstrap_Style {
|
||||||
$this->contentStart();
|
$this->contentStart();
|
||||||
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
||||||
$this->contentHeading(getMLText("rm_document"));
|
$this->contentHeading(getMLText("rm_document"));
|
||||||
|
if ($document->isCheckedOut()) {
|
||||||
|
$msg = getMLText('document_is_checked_out_remove');
|
||||||
|
$this->warningMsg($msg);
|
||||||
|
}
|
||||||
$this->contentContainerStart('warning');
|
$this->contentContainerStart('warning');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -225,7 +225,7 @@ console.log(element);
|
||||||
$this->warningMsg($msg);
|
$this->warningMsg($msg);
|
||||||
|
|
||||||
if ($document->isCheckedOut()) {
|
if ($document->isCheckedOut()) {
|
||||||
$msg = getMLText('document_is_checked_out');
|
$msg = getMLText('document_is_checked_out_update');
|
||||||
$this->warningMsg($msg);
|
$this->warningMsg($msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user