From 65a3c75b041169c303d9e0a34185d289ef0bae12 Mon Sep 17 00:00:00 2001 From: phf Date: Mon, 9 Feb 2015 11:57:30 +0100 Subject: [PATCH] [CORE] ajout des conditions dans la librairie pour le module (#new_ask_price). --- htdocs/core/lib/functions2.lib.php | 6 ++++++ 1 file changed, 6 insertions(+) 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';