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) {