diff --git a/ChangeLog.md b/ChangeLog.md index 2b6faff..ad74194 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## Unreleased ## Release 2.3 +- FIX : DA027410 Fatal Error on BOM create line : add global db to function doActions *09/12/2025* - 2.3.11 - FIX : Compat V22 - *02/10/2025* - 2.3.10 - FIX : Warnings in some context if options_ is not défined in extrafields - *08/07/2025* - 2.3.9 - FIX : Details on object line insert - *24/03/2025* - 2.3.8 diff --git a/class/actions_history.class.php b/class/actions_history.class.php index ae4811a..d370707 100644 --- a/class/actions_history.class.php +++ b/class/actions_history.class.php @@ -62,16 +62,16 @@ public function __construct() */ function doActions($parameters, &$object, &$action, $hookmanager) { - + global $db; if (!empty($object) && in_array('globalcard', explode(':', $parameters['context']))) { global $history_old_object,$conf; $history_old_object = clone $object; - - if($action == 'addline' && property_exists($object, "class_element_line")) $history_old_object = new $object->class_element_line($this->db); - + + if($action == 'addline' && property_exists($object, "class_element_line")) $history_old_object = new $object->class_element_line($db); + if(getDolGlobalString('HISTORY_STOCK_FULL_OBJECT_ON_DELETE') && strpos($action,'delete')!==false) { if(!defined('INC_FROM_DOLIBARR')) define('INC_FROM_DOLIBARR',true); diff --git a/core/modules/modHistory.class.php b/core/modules/modHistory.class.php index 1068b74..46d81dc 100644 --- a/core/modules/modHistory.class.php +++ b/core/modules/modHistory.class.php @@ -62,7 +62,7 @@ function __construct($db) $this->description = "Description of module History"; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version - $this->version = '2.3.10'; + $this->version = '2.3.11'; // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase) $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);