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;
|
||||
|
||||
if ($result < 0) {
|
||||
$this->error = $b->error;
|
||||
$this->errors = $b->errors;
|
||||
$this->setErrorsFromObject($b);
|
||||
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) {
|
||||
$this->error = $b->error;
|
||||
$this->errors = $b->errors;
|
||||
$this->setErrorsFromObject($b);
|
||||
return -1;
|
||||
} else {
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user