From 5cec87a80e2212ebd884fa7f8ae598221eae62f5 Mon Sep 17 00:00:00 2001 From: IC-Ilies <86972374+IC-Ilies@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:56:02 +0200 Subject: [PATCH] FIX link type extrafield on warehouse not working (#29339) --- htdocs/core/lib/functions.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index b22c23c8699..bf0bff6b4b1 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11923,7 +11923,8 @@ function getElementProperties($element_type) } elseif ($element_type == 'inventory') { $module = 'product'; $classpath = 'product/inventory/class'; - } elseif ($element_type == 'stock') { + } elseif ($element_type == 'stock' || $element_type == 'entrepot') { + $module = 'stock'; $classpath = 'product/stock/class'; $classfile = 'entrepot'; $classname = 'Entrepot';