From 12d243b8d4b8f3bed17d96a9bdd69c23547eaf4c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 7 Oct 2019 13:13:46 +0200 Subject: [PATCH] FIX #12040 --- htdocs/core/modules/modProduct.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/modules/modProduct.class.php b/htdocs/core/modules/modProduct.class.php index 13e9816008e..001c7759c67 100644 --- a/htdocs/core/modules/modProduct.class.php +++ b/htdocs/core/modules/modProduct.class.php @@ -552,6 +552,7 @@ class modProduct extends DolibarrModules ) ); + if (! is_array($this->import_convertvalue_array[$r])) $this->import_convertvalue_array[$r] = array(); $this->import_convertvalue_array[$r] = array_merge($this->import_convertvalue_array[$r], array( 'p.fk_unit' => array( 'rule' => 'fetchidfromcodeorlabel',