Skip to content

Commit

Permalink
Rename config option
Browse files Browse the repository at this point in the history
  • Loading branch information
pingiun committed May 19, 2024
1 parent 934fd68 commit 456d3ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ PRIVACY_POLICY_URL='https://roodjongeren.nl/privacybeleid/'
LISTMONK_URL='https://listmonk.roodjongeren.nl/admin'
USE_MIDDLE_NAME=true
CONTRIBUTION_ENABLED=true
SEND_FRESH_MEMBER_EMAIL_TO_BOARD=true
SEND_FRESH_MEMBER_EMAIL_TO_CONTACT_PEOPLE=false

# Set to https in production environment
SECURE_SCHEME='http'
2 changes: 1 addition & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parameters:
app.listmonkUrl: '%env(string:LISTMONK_URL)%'
app.useMiddleName: '%env(bool:USE_MIDDLE_NAME)%'
app.sendFreshMemberEmailToBoard: '%env(bool:SEND_FRESH_MEMBER_EMAIL_TO_BOARD)%'
app.sendFreshMemberEmailToContactPeople: '%env(bool:SEND_FRESH_MEMBER_EMAIL_TO_CONTACT_PEOPLE)%'
app.sendFreshMemberEmailToDivisionEmail: '%env(bool:SEND_FRESH_MEMBER_EMAIL_TO_DIVISION_EMAIL)%'
app.contributionEnabled: '%env(bool:CONTRIBUTION_ENABLED)%'
router.request_context.scheme: '%env(SECURE_SCHEME)%'
asset.request_context.secure: true
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/MemberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function handleRedirect(Request $request, string $customerId): Response
$this->mailer->send($message);
}

if ($this->getParameter('app.sendFreshMemberEmailToContactPeople') && $membershipApplication->getPreferredDivision() !== null) {
if ($this->getParameter('app.sendFreshMemberEmailToDivisionEmail') && $membershipApplication->getPreferredDivision() !== null) {
$division = $membershipApplication->getPreferredDivision();
$message = (new Email())
->subject("Er is een nieuw lid die geaccepteerd kan worden")
Expand Down

0 comments on commit 456d3ef

Please sign in to comment.