Verified Commit 6e5e46b4 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fix no notice passed

parent 903a9956
Pipeline #13795 passed with stage
in 36 minutes and 3 seconds
......@@ -78,10 +78,10 @@ class GroupAssignmentsController < ApplicationController
private
def create_redirect_to(notice_text = make_notice[:notice])
def create_redirect_to(notice_text = nil)
redirect_to(
polymorphic_path(@group_assignment.group_offer, action: params[:redirect_to].to_sym),
notice: notice_text
polymorphic_path(@group_assignment.group_offer, action: params[:redirect_to]),
notice: notice_text || make_notice[:notice]
)
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment