Merge pull request #18645 from atm-adrien/FIX_add_token

FIX : Add token to remove error when removing widget
This commit is contained in:
Laurent Destailleur 2021-09-09 04:31:03 +02:00 committed by GitHub
commit 6d7cb01951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1206,7 +1206,7 @@ class FormOther
async: false
});
// We force reload to be sure to get all boxes into list
window.location.search=\'mainmenu='.GETPOST("mainmenu", "aZ09").'&leftmenu='.GETPOST('leftmenu', "aZ09").'&action=delbox\';
window.location.search=\'mainmenu='.GETPOST("mainmenu", "aZ09").'&leftmenu='.GETPOST('leftmenu', "aZ09").'&action=delbox&token='.newToken().'\';
}
else
{