Update commonobject.class.php

This commit is contained in:
Anthony Berton 2022-01-25 22:28:47 +01:00 committed by GitHub
parent a7d3facf88
commit 4f54149555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2293,6 +2293,15 @@ abstract class CommonObject
if (get_class($this) == 'Fournisseur') {
$this->mode_reglement_supplier_id = $id;
}
// Triggers
if (!$error && !$notrigger) {
// Call triggers
$result = $this->call_trigger(strtoupper(get_class($this)).'_MODIFY', $user);
if ($result < 0) {
$error++;
}
// End call triggers
}
return 1;
} else {
dol_syslog(get_class($this).'::setPaymentMethods Error '.$this->db->error());