Skip to content

Commit

Permalink
Fix bug with template not rendering correctly
Browse files Browse the repository at this point in the history
This bug didn't occur on production because unknown variable errors
are hidden in production mode. The variable was used in an inherited
template so the bug was hidden.
  • Loading branch information
pingiun committed Nov 17, 2024
1 parent 4c31fe0 commit bf8a890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controller/ContributionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ public function automaticCollection(Request $request, LoggerInterface $logger):
return $this->render('user/contribution/automatic-collection.html.twig', [
'success' => false,
'form' => $form->createView(),
'contribution' => $org_config['contribution']
'contribution' => $org_config['contribution'],
// The user is currently setting up contribution, so setting this false disables the contribution nagbar
'contributionEnabled' => false,
]);
}

Expand Down

0 comments on commit bf8a890

Please sign in to comment.