Sorting by organisation on the users page is a bit broken because of the way the join is done so don't offer the capability to do it in the first place...

This commit is contained in:
2022-02-22 13:53:26 +00:00
parent 96e861e7fe
commit f75bde0ccf
2 changed files with 1 additions and 2 deletions

View File

@@ -31,7 +31,6 @@ class UserSprunje extends UFUserSprunje
];
protected $sortable = [
'name',
'organisations',
'last_activity',
'status',
];

View File

@@ -5,7 +5,7 @@
<thead>
<tr>
<th class="sorter-metatext" data-column-name="name" data-column-template="#user-table-column-info" data-priority="1">{{translate('USER')}} <i class="fas fa-sort"></i></th>
<th class="filter-metatext" data-column-name="organisations" data-column-template="#user-table-column-organisations" data-priority="2">{{translate("ORGANISATION", 2)}} <i class="fas fa-sort"></i></th>
<th class="filter-metatext" data-column-name="organisations" data-column-template="#user-table-column-organisations" data-priority="2">{{translate("ORGANISATION", 2)}}</th>
{% if 'last_activity' in table.columns %}
<th class="sorter-metanum" data-column-name="last_activity" data-column-template="#user-table-column-last-activity" data-priority="3">{{translate("ACTIVITY.LAST")}} <i class="fas fa-sort"></i></th>
{% endif %}