From cce7c928d5444331a5ae9d1c28f2e554d81a2415 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 23 Dec 2019 15:13:51 +0000 Subject: [PATCH] We have to get the group's ID from the hidden field now that we removed/hide the IP column by default. Signed-off-by: DL6ER --- scripts/pi-hole/js/groups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/groups.js b/scripts/pi-hole/js/groups.js index 7db4bbd9..208cc123 100644 --- a/scripts/pi-hole/js/groups.js +++ b/scripts/pi-hole/js/groups.js @@ -228,7 +228,7 @@ function addGroup() { function editGroup() { var elem = $(this).attr("id"); var tr = $(this).closest("tr"); - var id = tr.find("td:eq(0)").text(); + var id = tr.find("#id").val(); var name = tr.find("#name").val(); var status = tr.find("#status").is(":checked") ? 1 : 0; var desc = tr.find("#desc").val();