mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Fix filtres and scopes to take into account job and scope when the refferrer is add to the accompanying period work
This commit is contained in:
@@ -292,9 +292,7 @@ class User implements UserInterface, \Stringable
|
||||
|
||||
$sortedScopeHistories = $scopeHistories->toArray();
|
||||
|
||||
usort($sortedScopeHistories, function ($a, $b) {
|
||||
return $a->getStartDate() < $b->getStartDate() ? 1 : -1;
|
||||
});
|
||||
usort($sortedScopeHistories, fn ($a, $b) => $a->getStartDate() < $b->getStartDate() ? 1 : -1);
|
||||
|
||||
return new ArrayCollection($sortedScopeHistories);
|
||||
}
|
||||
@@ -346,9 +344,7 @@ class User implements UserInterface, \Stringable
|
||||
|
||||
$sortedJobHistories = $jobHistories->toArray();
|
||||
|
||||
usort($sortedJobHistories, function ($a, $b) {
|
||||
return $a->getStartDate() < $b->getStartDate() ? 1 : -1;
|
||||
});
|
||||
usort($sortedJobHistories, fn ($a, $b) => $a->getStartDate() < $b->getStartDate() ? 1 : -1);
|
||||
|
||||
return new ArrayCollection($sortedJobHistories);
|
||||
}
|
||||
|
Reference in New Issue
Block a user