Fix ticket.index sortby project

This commit is contained in:
Jérémy Munsch 2021-07-05 18:35:59 +02:00
parent eb37318c29
commit 0afc9b71d3
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class TicketController extends Controller
Session::has('tickets.sort_col') and
Session::has('tickets.sort_way') and
in_array(Session::get('tickets.sort_col'), [
'id', 'project', 'created_at', 'created_by',
'id', 'project_id', 'created_at', 'created_by',
'type', 'status'
])
) {

View file

@ -55,7 +55,7 @@ $userPr = Auth::user()->projects ?? collect([]);
</th>
<th scope="col">
{{__('Projet') }}&nbsp;
@include('modules.sorter', ['colname' => 'project'])
@include('modules.sorter', ['colname' => 'project_id'])
</th>
<th scope="col">
{{__('Type') }}&nbsp;