diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 119d88e7cf4..9c06f86e8c3 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -2077,7 +2077,11 @@ if ($resql) {
// Third party
if (!empty($arrayfields['s.nom']['checked'])) {
print '
';
- print $getNomUrl_cache[$obj->socid];
+ if (getDolGlobalInt('MAIN_ENABLE_AJAX_TOOLTIP')) {
+ print $companystatic->getNomUrl(1, 'customer', 100, 0, 1, empty($arrayfields['s.name_alias']['checked']) ? 0 : 1);
+ } else {
+ print $getNomUrl_cache[$obj->socid];
+ }
// If module invoices enabled and user with invoice creation permissions
if (isModEnabled('facture') && !empty($conf->global->ORDER_BILLING_ALL_CUSTOMER)) {
diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index 9481fb52e3f..13da1bd6c03 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -2927,7 +2927,7 @@ class Societe extends CommonObject
'objecttype' => $this->element,
'option' => $option,
];
- $linkclose .= ' data-params='.json_encode($params).' id="societe-' . uniqid() . '" title="' . $langs->trans('Loading') . '"';
+ $linkclose .= ' data-params='.json_encode($params).' id="' . uniqid('societe-') . '" title="' . $langs->trans('Loading') . '"';
$linkclose .= ' class="classforajaxtooltip refurl valignmiddle"';
} else {
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
|