From da91c5f5efd7c02a59e644b48495661304f40b6d Mon Sep 17 00:00:00 2001 From: Anthony Berton <34568357+bb2a@users.noreply.github.com> Date: Wed, 2 Feb 2022 12:38:22 +0100 Subject: [PATCH] Update commonobject.class.php --- htdocs/core/class/commonobject.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index dcc31870b1c..73220505692 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -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++; }