mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
[export] order center alphabetically when generating an export
This commit is contained in:
parent
56940d830c
commit
31745bc252
@ -57,6 +57,9 @@ final class PickCenterType extends AbstractType
|
|||||||
$export->requiredRole()
|
$export->requiredRole()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// order alphabetically
|
||||||
|
usort($centers, fn (Center $a, Center $b) => $a->getCenter() <=> $b->getName());
|
||||||
|
|
||||||
$builder->add('center', EntityType::class, [
|
$builder->add('center', EntityType::class, [
|
||||||
'class' => Center::class,
|
'class' => Center::class,
|
||||||
'choices' => $centers,
|
'choices' => $centers,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user