diff options
Diffstat (limited to 'ui/app/views/js/popup.dashboard.share.edit.js.php')
-rw-r--r-- | ui/app/views/js/popup.dashboard.share.edit.js.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/views/js/popup.dashboard.share.edit.js.php b/ui/app/views/js/popup.dashboard.share.edit.js.php index 3831a99741b..c69d956c67e 100644 --- a/ui/app/views/js/popup.dashboard.share.edit.js.php +++ b/ui/app/views/js/popup.dashboard.share.edit.js.php @@ -58,8 +58,8 @@ window.dashboard_share_edit_popup = { fetch(curl.getUrl(), { method: 'POST', - headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, - body: urlEncodeData(getFormFields(form)) + headers: {'Content-Type': 'application/json'}, + body: JSON.stringify(getFormFields(form)) }) .then((response) => response.json()) .then((response) => { @@ -129,7 +129,7 @@ window.dashboard_share_edit_popup = { break; case 'usrgrpid': - if (document.getElementById(`user-group-shares_${value.usrgrpid}`) !== null) { + if (document.getElementById(`user-group-shares-${value.usrgrpid}`) !== null) { continue; } |