mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Fixes #3873 - show groups correctly on user listing page
This commit is contained in:
parent
148d41d8dc
commit
15bb30acd6
|
@ -89,11 +89,15 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function groupsFormatter(value) {
|
function groupsFormatter(value) {
|
||||||
var groups = '';
|
|
||||||
for (var index = 0; index < value.length; index++) {
|
if (value) {
|
||||||
groups += '<a href="#" class="label label-default"> ' + value[index].name + '</a> ';
|
var groups = '';
|
||||||
|
for (var index in value.rows) {
|
||||||
|
groups += '<a href="#" class="label label-default"> ' + value.rows[index].name + '</a> ';
|
||||||
|
}
|
||||||
|
return groups;
|
||||||
}
|
}
|
||||||
return groups;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue