Explorar o código

HUE-2807 [useradmin] Support deleting numeric groups

Added toString to the data method
Enrico Berti %!s(int64=10) %!d(string=hai) anos
pai
achega
274ea2f7b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/useradmin/src/useradmin/templates/list_groups.mako

+ 1 - 1
apps/useradmin/src/useradmin/templates/list_groups.mako

@@ -192,7 +192,7 @@ ${layout.menubar(section='groups')}
       viewModel.chosenUsers.removeAll();
 
       $(".hueCheckbox[checked='checked']").each(function (index) {
-        viewModel.chosenUsers.push($(this).data("name"));
+        viewModel.chosenUsers.push($(this).data("name").toString()); // needed for numeric group names
       });
 
       $("#deleteGroup").modal("show");