mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 06:44:59 +00:00
improve histories order since User entity
This commit is contained in:
@@ -28,16 +28,18 @@ class UserJobScopeHistoriesController extends AbstractController
|
||||
*/
|
||||
public function indexAction(User $user): Response
|
||||
{
|
||||
$jobHistories = $user->getUserJobHistories();
|
||||
$scopeHistories = $user->getMainScopeHistories();
|
||||
|
||||
$jobHistories = $user->getUserJobHistoriesOrdered();
|
||||
$scopeHistories = $user->getMainScopeHistoriesOrdered();
|
||||
|
||||
return new Response(
|
||||
$this->engine->render('@ChillMain/User/history.html.twig', [
|
||||
'user' => $user,
|
||||
'jobHistories' => $jobHistories,
|
||||
'scopeHistories' => $scopeHistories,
|
||||
]
|
||||
));
|
||||
$this->engine->render(
|
||||
'@ChillMain/User/history.html.twig',
|
||||
[
|
||||
'user' => $user,
|
||||
'jobHistories' => $jobHistories,
|
||||
'scopeHistories' => $scopeHistories,
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user