add more error msgs

This commit is contained in:
Uwe Steinmann 2018-03-22 15:12:24 +01:00
parent e9d93860b9
commit b1bf70e828
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class SeedDMS_Controller_RemoveDocument extends SeedDMS_Controller_Common {
$result = $this->callHook('removeDocument', $document);
if($result === null) {
if (!$document->remove()) {
$this->errormsg = "error_occured";
return false;
} else {

View File

@ -59,6 +59,7 @@ class SeedDMS_Controller_RemoveFolder extends SeedDMS_Controller_Common {
$dms->setCallback('onPreRemoveDocument', 'removeFromIndex', array($index, $indexconf));
if (!$folder->remove()) {
$this->errormsg = 'error_occured';
return false;
} else {