This commit is contained in:
Laurent Destailleur
2025-10-21 14:54:56 +02:00
parent f35536712f
commit a0411e6725

View File

@@ -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;