瀏覽代碼

HUE-2807 [useradmin] Support deleting numeric groups

Added toString to the data method
Enrico Berti 10 年之前
父節點
當前提交
274ea2f7b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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");