From a14dd5448c0b80ee31bfbf0d3429fde9c9711b6a Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Mon, 9 Dec 2024 16:46:02 +0100 Subject: [PATCH] hotfix: fix register page not rendering for users with cannot_register_for_competition_reasons? not empty --- app/controllers/registrations_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 7a2b321e80..c23293789e 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -261,6 +261,9 @@ def do_add def register @competition = competition_from_params + if current_user + @registration = @competition.registrations.find_or_initialize_by(user_id: current_user.id, competition_id: @competition.id) + end end def payment_denomination