mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -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>
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue