Fix: rollback on success create_individual

Fix:
Societe::create_individual rollback on success
This commit is contained in:
antonin_tdj 2022-06-07 18:44:00 +02:00 committed by GitHub
parent 78af5b9be7
commit 48fdfe26fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1078,7 +1078,7 @@ class Societe extends CommonObject
}
}
if (!empty($error)) {
if (empty($error)) {
dol_syslog(get_class($this)."::create_individual success");
$this->db->commit();
} else {