fix: restore room occupancy lost to case-sensitive xml attribute lookup
This commit is contained in:
1 parent
24df764efb
commit
e14d29f7d4
10 files changed
+223
-16
No files matched your search
@@ -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,
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user