fix ajax tooltip
This commit is contained in:
parent
8165b2eba8
commit
0349b1095a
@ -79,7 +79,7 @@ top_httphead();
|
|||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
if (is_object($object)) {
|
if (is_object($object)) {
|
||||||
if ($object->id > 0) {
|
if ($object->id > 0 || !empty($object->ref)) {
|
||||||
$html = $object->getTooltipContent($params);
|
$html = $object->getTooltipContent($params);
|
||||||
} elseif ($res == 0) {
|
} elseif ($res == 0) {
|
||||||
$html = $langs->trans('Deleted');
|
$html = $langs->trans('Deleted');
|
||||||
|
|||||||
@ -11323,6 +11323,10 @@ function getElementProperties($element_type)
|
|||||||
$classpath = 'comm/propal/class';
|
$classpath = 'comm/propal/class';
|
||||||
$module = 'propal';
|
$module = 'propal';
|
||||||
$subelement = 'propaleligne';
|
$subelement = 'propaleligne';
|
||||||
|
} elseif ($element_type == 'opensurvey_sondage') {
|
||||||
|
$classpath = 'opensurvey/class';
|
||||||
|
$module = 'opensurvey';
|
||||||
|
$subelement = 'opensurveysondage';
|
||||||
} elseif ($element_type == 'order_supplier') {
|
} elseif ($element_type == 'order_supplier') {
|
||||||
$classpath = 'fourn/class';
|
$classpath = 'fourn/class';
|
||||||
$module = 'fournisseur';
|
$module = 'fournisseur';
|
||||||
@ -11340,7 +11344,7 @@ function getElementProperties($element_type)
|
|||||||
} elseif ($element_type == "service") {
|
} elseif ($element_type == "service") {
|
||||||
$classpath = 'product/class';
|
$classpath = 'product/class';
|
||||||
$subelement = 'product';
|
$subelement = 'product';
|
||||||
} elseif ($objecttype == 'salary') {
|
} elseif ($element_type == 'salary') {
|
||||||
$classpath = 'salaries/class';
|
$classpath = 'salaries/class';
|
||||||
$module = 'salaries';
|
$module = 'salaries';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user