mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
Fixes #3873 - show groups correctly on user listing page
This commit is contained in:
parent
148d41d8dc
commit
15bb30acd6
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue