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