Merge pull request #19925 from bb2a/patch-1

FIX - Trigger setPaymentMethods
This commit is contained in:
Laurent Destailleur 2022-01-26 11:39:38 +01:00 committed by GitHub
commit 2c26cc7d6b
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());