From abe53cad05dfb01e1a89808f4a0d231b30bc69b9 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Tue, 2 Jan 2018 09:36:37 +0100 Subject: [PATCH 1/2] fix #8004 --- htdocs/blockedlog/class/blockedlog.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php index 47a02074dc3..46b212c30d8 100644 --- a/htdocs/blockedlog/class/blockedlog.class.php +++ b/htdocs/blockedlog/class/blockedlog.class.php @@ -795,6 +795,7 @@ class BlockedLog if (empty($conf->global->BLOCKEDLOG_ENTITY_FINGERPRINT)) { // creation of a unique fingerprint require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; + require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php'; $fingerprint = dol_hash(print_r($mysoc,true).getRandomPassword(1), '5'); From 320465aeb9938c5aec5bfb0457d22df688fd047e Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Tue, 2 Jan 2018 09:46:45 +0100 Subject: [PATCH 2/2] fix : #8003 --- htdocs/install/mysql/tables/llx_inventory.key.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/mysql/tables/llx_inventory.key.sql b/htdocs/install/mysql/tables/llx_inventory.key.sql index b6c41f8aef1..a20fe45fe56 100644 --- a/htdocs/install/mysql/tables/llx_inventory.key.sql +++ b/htdocs/install/mysql/tables/llx_inventory.key.sql @@ -20,4 +20,4 @@ ALTER TABLE llx_inventory ADD UNIQUE INDEX uk_inventory_ref (ref, entity); ALTER TABLE llx_inventory ADD INDEX idx_inventory_tms (tms); -ALTER TABLE llx_inventory ADD INDEX idx_inventory_datec (datec); +ALTER TABLE llx_inventory ADD INDEX idx_inventory_date_creation (date_creation);