From 71f30266dcec123a2c1ba4340d5914f5007b9078 Mon Sep 17 00:00:00 2001 From: Ion Date: Sun, 7 Apr 2019 12:53:52 +0200 Subject: [PATCH] Add service to getElementProperties --- htdocs/core/lib/functions2.lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 7e0a3ecc5c4..7fea3d20360 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -2115,6 +2115,10 @@ function getElementProperties($element_type) $subelement='facturefournisseur'; $classfile='fournisseur.facture'; } + if ($element_type == "service") { + $classpath = 'product/class'; + $subelement='product'; + } if (!isset($classfile)) $classfile = strtolower($subelement); if (!isset($classname)) $classname = ucfirst($subelement);