FIX missing token

This commit is contained in:
Regis Houssin 2023-03-23 13:02:49 +01:00
parent d923ad2340
commit 188f9b67cf
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -931,6 +931,7 @@ class CommandeFournisseur extends CommonOrder
'id' => $this->id,
'objecttype' => $this->element,
'option' => $option,
'nofetch' => 1
];
$classfortooltip = 'classfortooltip';
$dataparams = '';