call hoock postEditDocument even after hook editDocument

This commit is contained in:
Uwe Steinmann 2020-12-14 07:51:51 +01:00
parent 98c1220260
commit e91dd1c09c

View File

@ -165,11 +165,14 @@ class SeedDMS_Controller_EditDocument extends SeedDMS_Controller_Common {
}
}
if(!$this->callHook('postEditDocument')) {
}
} elseif($result === false) {
if(empty($this->errormsg))
$this->errormsg = 'hook_editDocument_failed';
return false;
}
} else
return $result;
if(!$this->callHook('postEditDocument')) {
}
return true;
}