Skip to content

Commit

Permalink
Load superevents on update/create routes when something errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jun 15, 2024
1 parent 12f95c2 commit e242485
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/proposals_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def edit

def create
@url = conference_program_proposals_path(@conference.short_title)
@superevents = @program.events.where(superevent: true)

# We allow proposal submission and sign up on same page.
# If user is not signed in then first create new user and then sign them in
Expand Down Expand Up @@ -80,6 +81,7 @@ def create

def update
@url = conference_program_proposal_path(@conference.short_title, params[:id])
@superevents = @program.events.where(superevent: true)

track = Track.find_by(id: params[:event][:track_id])
if track && !track.cfp_active
Expand Down

0 comments on commit e242485

Please sign in to comment.