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,7 +29,8 @@ class SeedDMS_Controller_UpdateDocument extends SeedDMS_Controller_Common {
|
||||||
/* Call preUpdateDocument early, because it might need to modify some
|
/* Call preUpdateDocument early, because it might need to modify some
|
||||||
* of the parameters.
|
* of the parameters.
|
||||||
*/
|
*/
|
||||||
if(false === $this->callHook('preUpdateDocument')) {
|
if(false === $this->callHook('preUpdateDocument', $this->params['document'])) {
|
||||||
|
if(empty($this->errormsg))
|
||||||
$this->errormsg = 'hook_preUpdateDocument_failed';
|
$this->errormsg = 'hook_preUpdateDocument_failed';
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user