mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
Change dashboard editor save request method from GET to POST
This commit is contained in:
@@ -321,8 +321,12 @@ class IboDashboard extends HTMLElement {
|
||||
// This payload shape is expected by the server
|
||||
const aPayload = this.Serialize();
|
||||
|
||||
let sSaveUrl = GetAbsoluteUrlAppRoot() + '/pages/UI.php?route=dashboard.save&values='+encodeURIComponent(JSON.stringify(aPayload));
|
||||
fetch(sSaveUrl)
|
||||
let sSaveUrl = GetAbsoluteUrlAppRoot() + '/pages/UI.php?route=dashboard.save';
|
||||
|
||||
fetch(sSaveUrl, {
|
||||
method: "POST",
|
||||
body: new URLSearchParams({ values: JSON.stringify(aPayload) }),
|
||||
})
|
||||
.then(async data => {
|
||||
const res = await data.json();
|
||||
if(res.status === 'ok') {
|
||||
|
||||
Reference in New Issue
Block a user