From 75c29a0925eeeb0ec55d38995d9c5f6bf9ee30d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 28 Mar 2023 11:33:48 +0200 Subject: [PATCH] fix ajax tooltip for warehouse --- htdocs/core/lib/functions.lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 79d5f038678..57845360f10 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11244,12 +11244,15 @@ function getElementProperties($element_type) $classpath = 'comm/action/class'; $subelement = 'Actioncomm'; $module = 'agenda'; - } - if ($element_type == 'bank_account') { + } elseif ($element_type == 'bank_account') { $classpath = 'compta/bank/class'; $module = 'banque'; $classfile = 'Account'; $classname = 'Account'; + } elseif ($element_type == 'stock') { + $classpath = 'product/stock/class'; + $classfile = 'entrepot'; + $classname = 'Entrepot'; } // To work with non standard path if ($element_type == 'facture' || $element_type == 'invoice') {