Skip to content

Commit

Permalink
[Admin] Can not change donation to membership if no linked adherent
Browse files Browse the repository at this point in the history
  • Loading branch information
Remg committed Oct 30, 2024
1 parent 41a76d7 commit 06a3dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/DonationAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected function configureFormFields(FormMapper $form): void
->add('membership', CheckboxType::class, [
'label' => 'Cotisation',
'required' => false,
'disabled' => $donation->isMembership(),
'disabled' => $donation->isMembership() || null === $donation->getDonator()?->getAdherent(),
])
->add('code', null, [
'label' => 'Code don',
Expand Down

0 comments on commit 06a3dc0

Please sign in to comment.