mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Doc
This commit is contained in:
@@ -144,16 +144,14 @@ class InterfaceActionsBlockedLog extends DolibarrTriggers
|
|||||||
//var_dump($b); exit;
|
//var_dump($b); exit;
|
||||||
|
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$this->error = $b->error;
|
$this->setErrorsFromObject($b);
|
||||||
$this->errors = $b->errors;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$res = $b->create($user);
|
$res = $b->create($user); // Insert event in unalterable log. We are in a trigger so inside a global db transaction.
|
||||||
|
|
||||||
if ($res < 0) {
|
if ($res < 0) {
|
||||||
$this->error = $b->error;
|
$this->setErrorsFromObject($b);
|
||||||
$this->errors = $b->errors;
|
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user