fix: reverse values in ratings choices
This commit is contained in:
@@ -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)),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user