From ddbae0f6ad9b29f402bd4755a3977b0366fe3758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 10 Sep 2025 10:53:54 +0200 Subject: [PATCH] Add TRIGGER_PREFIX in order (commande) class (#35268) Co-authored-by: Laurent Destailleur --- htdocs/commande/class/commande.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 207ff01dc84..f1cb50a5366 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -57,6 +57,12 @@ class Commande extends CommonOrder */ public $element = 'commande'; + /** + * @var string Prefix to check for any trigger code of any business class to prevent bad value for trigger code. + * @see CommonTrigger::call_trigger() + */ + public $TRIGGER_PREFIX = 'ORDER'; + /** * @var string Name of table without prefix where object is stored */