diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 9a26c727bd4..3f273e8eaff 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1534,6 +1534,9 @@ function dolGetElementUrl($objectid,$objecttype,$withpicto=0,$option='') if ($objecttype == 'propal') { $classpath = 'comm/propal/class'; } + if ($objecttype == 'askpricesupplier') { + $classpath = 'comm/askpricesupplier/class'; + } if ($objecttype == 'shipping') { $classpath = 'expedition/class'; $subelement = 'expedition'; @@ -1765,6 +1768,9 @@ function getElementProperties($element_type) if ($element_type == 'propal') { $classpath = 'comm/propal/class'; } + if ($element_type == 'askpricesupplier') { + $classpath = 'comm/askpricesupplier/class'; + } if ($element_type == 'shipping') { $classpath = 'expedition/class'; $subelement = 'expedition';