Fixes #3873 - show groups correctly on user listing page

This commit is contained in:
snipe 2017-08-22 12:29:46 -07:00
parent 148d41d8dc
commit 15bb30acd6

View file

@ -89,13 +89,17 @@
<script> <script>
function groupsFormatter(value) { function groupsFormatter(value) {
if (value) {
var groups = ''; var groups = '';
for (var index = 0; index < value.length; index++) { for (var index in value.rows) {
groups += '<a href="#" class="label label-default"> ' + value[index].name + '</a> '; groups += '<a href="#" class="label label-default"> ' + value.rows[index].name + '</a> ';
} }
return groups; return groups;
} }
}
</script> </script>
@stop @stop