From cf329df785098ca48fc6bec30e449cb167fbe955 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 21 Jul 2025 18:02:50 +0200 Subject: [PATCH] Debug v22 --- htdocs/commande/class/orderline.class.php | 1 + htdocs/core/lib/functions.lib.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/class/orderline.class.php b/htdocs/commande/class/orderline.class.php index 28c5e9851f5..599fa44e03e 100644 --- a/htdocs/commande/class/orderline.class.php +++ b/htdocs/commande/class/orderline.class.php @@ -37,6 +37,7 @@ */ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobjectline.class.php'; +require_once DOL_DOCUMENT_ROOT.'/core/class/commonorder.class.php'; // Because the CommonOrderLine is still in commonorder.class.php file require_once DOL_DOCUMENT_ROOT.'/margin/lib/margins.lib.php'; diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 51d9f061f30..71794e6bc5d 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1530,7 +1530,6 @@ function dol_include_once($relpath, $classname = '') dol_syslog('functions::dol_include_once Tried to load unexisting file: '.$relpath, LOG_WARNING); return false; } - if (!empty($classname) && !class_exists($classname)) { return include $fullpath; } else {