From d0e66615f65265c3d9b323af19a6c5287a1441e7 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 11 Jul 2022 13:00:35 +0200 Subject: [PATCH] fixes #1690 name is sent properly to API --- admin/themes/default/js/group_list.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/themes/default/js/group_list.js b/admin/themes/default/js/group_list.js index 58be55639..165cf0400 100644 --- a/admin/themes/default/js/group_list.js +++ b/admin/themes/default/js/group_list.js @@ -89,7 +89,10 @@ jQuery(document).ready(function () { jQuery.ajax({ url: "ws.php?format=json&method=pwg.groups.add", type: "POST", - data: "name=" + name + "&pwg_token=" + pwg_token, + data: { + 'name': name, + 'pwg_token': pwg_token, + }, success: function (raw_data) { loadState.reverse(); data = jQuery.parseJSON(raw_data);