set errors from object
This commit is contained in:
parent
3adc7dd2e9
commit
2d454d6815
@ -742,8 +742,7 @@ class ActionComm extends CommonObject
|
|||||||
$action = '';
|
$action = '';
|
||||||
$reshook = $hookmanager->executeHooks('createFrom', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('createFrom', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
if ($reshook < 0) {
|
if ($reshook < 0) {
|
||||||
$this->errors += $hookmanager->errors;
|
$this->setErrorsFromObject($hookmanager);
|
||||||
$this->error = $hookmanager->error;
|
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user