Verified Commit 45617c16 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

save user set period end anyhow

parent d22bcb4c
Pipeline #13853 canceled with stage
in 23 minutes and 5 seconds
......@@ -76,13 +76,12 @@ class GroupAssignmentsController < ApplicationController
private
def handle_period_end
if @group_assignment.will_save_change_to_period_end?(from: nil) && @group_assignment.ending?
@group_assignment.period_end_set_by = current_user
[
'Einsatzende wurde erfolgreich gesetzt.',
params[:redirect_to] || :terminated_group_assignments_index
]
end
return unless @group_assignment.will_save_change_to_period_end?(from: nil)
@group_assignment.period_end_set_by = current_user
[
'Einsatzende wurde erfolgreich gesetzt.',
params[:redirect_to] || :terminated_group_assignments_index
]
end
def create_redirect_to(notice_text = nil, action: nil)
......
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