Merge pull request #19976 from bb2a/patch-1

FIX - Trigger in setPaymentMethods for order
This commit is contained in:
Laurent Destailleur 2022-02-04 09:23:11 +01:00 committed by GitHub
commit 3a9564ed88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2301,7 +2301,11 @@ abstract class CommonObject
// Triggers
if (!$error && !$notrigger) {
// Call triggers
$result = $this->call_trigger(strtoupper(get_class($this)).'_MODIFY', $user);
if (get_class($this) == 'Commande') {
$result = $this->call_trigger('ORDER_MODIFY', $user);
}else{
$result = $this->call_trigger(strtoupper(get_class($this)).'_MODIFY', $user);
}
if ($result < 0) {
$error++;
}