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",
|
tooltipClass: "mytooltip",
|
||||||
open: function (event, ui) {
|
open: function (event, ui) {
|
||||||
var elem = $(this);
|
var elem = $(this);
|
||||||
var params = $(this).attr("data-params");
|
var params = JSON.parse($(this).attr("data-params"));
|
||||||
|
objparams.token = "'.currentToken().'";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url:"' . dol_buildpath('/core/ajax/ajaxtooltip.php', 1) . '",
|
url:"' . dol_buildpath('/core/ajax/ajaxtooltip.php', 1) . '",
|
||||||
type: "post",
|
type: "post",
|
||||||
async: false,
|
async: false,
|
||||||
data: JSON.parse(params),
|
data: params,
|
||||||
success: function(response){
|
success: function(response){
|
||||||
// Setting content option
|
// Setting content option
|
||||||
elem.tooltip("option","content",response);
|
elem.tooltip("option","content",response);
|
||||||
|
|||||||
@ -931,6 +931,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'objecttype' => $this->element,
|
'objecttype' => $this->element,
|
||||||
'option' => $option,
|
'option' => $option,
|
||||||
|
'nofetch' => 1
|
||||||
];
|
];
|
||||||
$classfortooltip = 'classfortooltip';
|
$classfortooltip = 'classfortooltip';
|
||||||
$dataparams = '';
|
$dataparams = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user