Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions class/actions_history.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion core/modules/modHistory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down