Skip to content

Commit

Permalink
do not unset amount
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Sep 9, 2021
1 parent a6f6705 commit 7aaab45
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/EventListener/EventRegistrationFormListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public function __invoke(array &$submittedData, array $formData, ?array $files,
$registration->form = (int) $form->id;
$registration->member = $member ? (int) $member->id : 0;
$registration->amount = (int) $submittedData['amount'] ?: 1;

unset($submittedData['amount']);
$registration->form_data = json_encode($submittedData);

$registration->save();
Expand Down

0 comments on commit 7aaab45

Please sign in to comment.