diff --git a/htdocs/core/ajax/ajaxtooltip.php b/htdocs/core/ajax/ajaxtooltip.php index 90c416100cb..9a4d42ce5bb 100644 --- a/htdocs/core/ajax/ajaxtooltip.php +++ b/htdocs/core/ajax/ajaxtooltip.php @@ -79,7 +79,7 @@ top_httphead(); $html = ''; if (is_object($object)) { - if ($object->id > 0) { + if ($object->id > 0 || !empty($object->ref)) { $html = $object->getTooltipContent($params); } elseif ($res == 0) { $html = $langs->trans('Deleted'); diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 2852de2ccf3..17a9bb30e0d 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11323,6 +11323,10 @@ function getElementProperties($element_type) $classpath = 'comm/propal/class'; $module = 'propal'; $subelement = 'propaleligne'; + } elseif ($element_type == 'opensurvey_sondage') { + $classpath = 'opensurvey/class'; + $module = 'opensurvey'; + $subelement = 'opensurveysondage'; } elseif ($element_type == 'order_supplier') { $classpath = 'fourn/class'; $module = 'fournisseur'; @@ -11340,7 +11344,7 @@ function getElementProperties($element_type) } elseif ($element_type == "service") { $classpath = 'product/class'; $subelement = 'product'; - } elseif ($objecttype == 'salary') { + } elseif ($element_type == 'salary') { $classpath = 'salaries/class'; $module = 'salaries'; }