Skip to content

Commit fdb511b

Browse files
committed
Refonte - Événements > Inscriptions - Créer/Modifier/Supprimer disable invoice references
1 parent 1a190b3 commit fdb511b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/AppBundle/Event/Form/TicketInvoiceType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
2929
$builder
3030
->add('reference', TextType::class, [
3131
'label' => 'Référence',
32-
'disabled' => !$options['data'],
32+
'disabled' => true,
3333
'required' => false,
3434
])
3535
->add('authorization', TextType::class, [
3636
'label' => 'Autorisation',
37+
'disabled' => (bool) $options['data'],
3738
'required' => false,
3839
])
3940
->add('transaction', TextType::class, [
4041
'label' => 'Transaction',
42+
'disabled' => (bool) $options['data'],
4143
'required' => false,
4244
])
4345

0 commit comments

Comments
 (0)