Skip to content

Commit

Permalink
Add missing setFlying actions. ref #951 #952 #953
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 12, 2023
1 parent 37f997b commit ab08210
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/AppBundle/Command/ImportUsersCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$membership = new Membership();
$output->writeln("<info>No Membership with number <fg=cyan>$member_number</> found, create one</info>",OutputInterface::VERBOSITY_DEBUG);
$membership->setMemberNumber($member_number);
$membership->setFlying(false);
$membership->setWithdrawn(false);
$membership->setFrozen(false);
$membership->setFrozenChange(false);
Expand Down
1 change: 1 addition & 0 deletions src/AppBundle/Controller/BeneficiaryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public function detachBeneficiaryAction(Request $request, Beneficiary $beneficia
$new_member->setMainBeneficiary($beneficiary);
}
// init other fields
$new_member->setFlying(false);
$new_member->setWithdrawn(false);
$new_member->setFrozen(false);
$new_member->setFrozenChange(false);
Expand Down
1 change: 1 addition & 0 deletions src/AppBundle/Controller/MembershipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ public function newAction(Request $request)
$member->removeRegistration($registration); //no registration yet
}

$member->setFlying(false);
$member->setWithdrawn(false);
$member->setFrozen(false);
$member->setFrozenChange(false);
Expand Down

0 comments on commit ab08210

Please sign in to comment.