FIX missing token
This commit is contained in:
parent
d923ad2340
commit
188f9b67cf
@ -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);
|
||||
|
||||
@ -931,6 +931,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
'id' => $this->id,
|
||||
'objecttype' => $this->element,
|
||||
'option' => $option,
|
||||
'nofetch' => 1
|
||||
];
|
||||
$classfortooltip = 'classfortooltip';
|
||||
$dataparams = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user