Fix: Use proper default sorting
This commit is contained in:
@@ -32,7 +32,7 @@ class IndexController extends AbstractController
|
|||||||
$request->query->getInt('page', 1),
|
$request->query->getInt('page', 1),
|
||||||
10,
|
10,
|
||||||
[
|
[
|
||||||
'defaultSortFieldName' => 'assignment.dateFrom',
|
'defaultSortFieldName' => 'destination.dateFrom',
|
||||||
'defaultSortDirection' => 'asc',
|
'defaultSortDirection' => 'asc',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class IndexController extends AbstractController
|
|||||||
$request->query->getInt('page', 1),
|
$request->query->getInt('page', 1),
|
||||||
10,
|
10,
|
||||||
[
|
[
|
||||||
'defaultSortFieldName' => 'assignment.dateFrom',
|
'defaultSortFieldName' => 'destination.dateFrom',
|
||||||
'defaultSortDirection' => 'asc',
|
'defaultSortDirection' => 'asc',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,13 +12,13 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Einsatz­zeitraum', 'assignment.dateFrom') }}
|
{{ knp_pagination_sortable(pagination, 'Einsatz­zeitraum', 'destination.dateFrom') }}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Jobprofil', 'job_profile.name') }}
|
{{ knp_pagination_sortable(pagination, 'Jobprofil', 'job_profile.name') }}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Destination', 'destination.dateFrom') }}
|
{{ knp_pagination_sortable(pagination, 'Destination', 'destination.product') }}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Bus', 'assignment.pickup') }}
|
{{ knp_pagination_sortable(pagination, 'Bus', 'assignment.pickup') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user