From 6a8e90762fc4de8d5681fca7acf33165199bcc4a Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Mon, 30 Dec 2024 10:22:56 +0100 Subject: [PATCH] Fix : Details on object line insert were not saved --- ChangeLog.md | 1 + class/actions_history.class.php | 1 + core/modules/modHistory.class.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 4562d5e..d06e5b2 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 : Details on object line insert - *30/12/2024* - 2.3.2 - FIX : COMPAT V21 - *18/12/2024* - 2.3.1 - NEW : COMPAT V20 - *24/07/2024* - 2.3.0 diff --git a/class/actions_history.class.php b/class/actions_history.class.php index bde68bc..0ecb9d2 100644 --- a/class/actions_history.class.php +++ b/class/actions_history.class.php @@ -69,6 +69,7 @@ function doActions($parameters, &$object, &$action, $hookmanager) global $history_old_object,$conf; $history_old_object = clone $object; + if($action == 'addline') $history_old_object = new $object->class_element_line($this->db); if(getDolGlobalString('HISTORY_STOCK_FULL_OBJECT_ON_DELETE') && strpos($action,'delete')!==false) { diff --git a/core/modules/modHistory.class.php b/core/modules/modHistory.class.php index 5bf8e0d..c0b9e90 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.1'; + $this->version = '2.3.2'; // 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);