fix: restore room occupancy lost to case-sensitive xml attribute lookup

This commit is contained in:
Björn Fromme committed 2026-08-31 14:15:21 +02:00
1 parent 24df764efb
commit e14d29f7d4
10 files changed
+223 -16

No files matched your search

+6 -1
View File
@@ -24,12 +24,17 @@ class RoomSelectType extends AbstractType
$data = $event->getData();
$form = $event->getForm();
$choices = ['-' => 0];
if (0 < $data->maxQuantity) {
$choices += array_combine(range(1, $data->maxQuantity), range(1, $data->maxQuantity));
}
$form->add('quantity', StepSelectChoiceType::class, [
'label' => false,
'required' => true,
'min_value' => 0,
'max_value' => $data->maxQuantity,
'choices' => ['-' => 0] + array_combine(range(1, $data->maxQuantity), range(1, $data->maxQuantity)),
'choices' => $choices,
]);
});
}