fix: reverse values in ratings choices

This commit is contained in:
Björn Fromme
2024-02-28 09:15:53 +01:00
parent 537e5b3c88
commit e3b62ee89d
+1 -1
View File
@@ -17,7 +17,7 @@ class FeedbackRatingsType extends AbstractType
foreach ($ratings as $index => $rating) {
$builder->add('rating_'.$index, ChoiceType::class, [
'label' => $rating,
'choices' => array_combine(range(1, 5), range(1,5)),
'choices' => array_combine(range(5, 1), range(5,1)),
]);
}
}