From c18c6fe8dcf24bcc4e3d3730c41b43f2cf19f06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 2 Oct 2025 16:14:27 +0200 Subject: [PATCH] use TRIGGER_PREFIX if available when updating notes (#35585) --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index b1aefbde9b8..1f09ab85dbc 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -3881,7 +3881,7 @@ abstract class CommonObject $triggerName = 'EXPENSE_REPORT_MODIFY'; break; default: - $triggerName = strtoupper($this->element) . '_MODIFY'; + $triggerName = (!empty($this->TRIGGER_PREFIX) ? $this->TRIGGER_PREFIX : strtoupper($this->element)) . '_MODIFY'; } $ret = $this->call_trigger($triggerName, $user); if ($ret < 0) {