Explorar el Código

HUE-2807 [useradmin] Support deleting numeric groups

Added toString to the data method
Enrico Berti hace 10 años
padre
commit
274ea2f
Se han modificado 1 ficheros con 1 adiciones y 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");