2
0
forked from Wavyzz/dolibarr

Fix token for ajax call

This commit is contained in:
Laurent Destailleur
2021-06-17 03:37:52 +02:00
parent 3754c2c3c9
commit 61bd572a9c
15 changed files with 67 additions and 48 deletions

View File

@@ -153,7 +153,7 @@ if (!($_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root.'/' || $_SERVER['HTTP
// Update status of all notifications we sent on browser (listofreminderids)
console.log("Flag notification as done for listofreminderids="+listofreminderids);
$.ajax("<?php print DOL_URL_ROOT.'/core/ajax/check_notifications.php?action=stopreminder&listofreminderids='; ?>"+listofreminderids, {
type: "post", // Usually post or get
type: "POST", // Usually post or get
async: true,
data: { time_js_next_test: time_js_next_test, token: 'notrequired' }
});