diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index 963e357199a..26a0e7756a9 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -85,12 +85,13 @@ if (empty($conf->dol_no_mouse_hover)) { tooltipClass: "mytooltip", open: function (event, ui) { var elem = $(this); - var params = $(this).attr("data-params"); + var params = JSON.parse($(this).attr("data-params")); + objparams.token = "'.currentToken().'"; $.ajax({ url:"' . dol_buildpath('/core/ajax/ajaxtooltip.php', 1) . '", type: "post", async: false, - data: JSON.parse(params), + data: params, success: function(response){ // Setting content option elem.tooltip("option","content",response); diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 755a503e34f..9a08f01d27b 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -931,6 +931,7 @@ class CommandeFournisseur extends CommonOrder 'id' => $this->id, 'objecttype' => $this->element, 'option' => $option, + 'nofetch' => 1 ]; $classfortooltip = 'classfortooltip'; $dataparams = '';