fix: NumberClasss invalid_message
This commit is contained in:
parent
64667cc24c
commit
98362e0379
@ -23,7 +23,7 @@ class QRCodeMoneyType extends AbstractType
|
|||||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
->add('amount', NumberType::class)
|
->add('amount', NumberType::class, ['invalid_message' => 'messages.not_valid_amount'])
|
||||||
->add('currency', ChoiceType::class, [
|
->add('currency', ChoiceType::class, [
|
||||||
'choices' => array_combine(
|
'choices' => array_combine(
|
||||||
iterator_to_array($this->currencyLister->getCurrencies()),
|
iterator_to_array($this->currencyLister->getCurrencies()),
|
||||||
|
Loading…
Reference in New Issue
Block a user