Skip to content

Commit

Permalink
Hotfix error in MembershipService. ref #918
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 17, 2023
1 parent 505c4ee commit ad36478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AppBundle/Service/MembershipService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ class MembershipService
protected $registration_duration;
protected $registration_every_civil_year;
protected $cycle_type;
protected $use_fly_and_fixed;

public function __construct(ContainerInterface $container, EntityManagerInterface $em)
{
$this->em = $em;
$this->registration_duration = $container->getParameter('registration_duration');
$this->registration_every_civil_year = $container->getParameter('registration_every_civil_year');
$this->cycle_type = $container->getParameter('cycle_type');
$this->use_fly_and_fixed = $container->getParameter('use_fly_and_fixed');
}

/**
Expand Down Expand Up @@ -199,7 +201,7 @@ public function hasWarningStatus(Membership $member): bool
$member->isCurrentlyExemptedFromShifts() ||
!$this->isUptodate($member);

if ($this->container->getParameter('use_fly_and_fixed')) {
if ($this->use_fly_and_fixed) {
$hasWarningStatus = $hasWarningStatus || $member->isFlying();
}

Expand Down

0 comments on commit ad36478

Please sign in to comment.