From 81aaba6e8663fc6ab6b76afd30fa84b994425e8d Mon Sep 17 00:00:00 2001 From: support-accellier <151022268+support-accellier@users.noreply.github.com> Date: Mon, 30 Mar 2026 22:49:49 +0530 Subject: [PATCH] Add check for defined SUBTOTALS_SPECIAL_CODE (#37666) Bugfix for #37663 --- 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 e627be232d0..151ef3be886 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -5958,7 +5958,7 @@ abstract class CommonObject $this->tpl['strike'] = 0; if ($restrictlist == 'services' && $line->product_type != Product::TYPE_SERVICE) { $this->tpl['strike'] = 1; - } elseif ($line->special_code == SUBTOTALS_SPECIAL_CODE) { + } elseif (defined('SUBTOTALS_SPECIAL_CODE') && $line->special_code == SUBTOTALS_SPECIAL_CODE) { $this->tpl['strike'] = 1; }