Преглед на файлове

HUE-2807 [useradmin] Support deleting numeric groups

Added toString to the data method
Enrico Berti преди 10 години
родител
ревизия
274ea2f
променени са 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");