mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
set error msg only if not already set
This commit is contained in:
parent
dc58e02d25
commit
7a1c4b495c
|
@ -29,8 +29,9 @@ class SeedDMS_Controller_UpdateDocument extends SeedDMS_Controller_Common {
|
|||
/* Call preUpdateDocument early, because it might need to modify some
|
||||
* of the parameters.
|
||||
*/
|
||||
if(false === $this->callHook('preUpdateDocument')) {
|
||||
$this->errormsg = 'hook_preUpdateDocument_failed';
|
||||
if(false === $this->callHook('preUpdateDocument', $this->params['document'])) {
|
||||
if(empty($this->errormsg))
|
||||
$this->errormsg = 'hook_preUpdateDocument_failed';
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user