diff --git a/app/controllers/additionals_change_status_controller.rb b/app/controllers/additionals_change_status_controller.rb index e279d241..3e65e1dc 100644 --- a/app/controllers/additionals_change_status_controller.rb +++ b/app/controllers/additionals_change_status_controller.rb @@ -25,11 +25,12 @@ class AdditionalsChangeStatusController < ApplicationController journal: @issue.current_journal if !@issue.save || issue_old_status_id == @issue.status_id - if issue_old_status_id == @issue.status_id - flash_msg :error_issue_status_could_not_changed - else - flash_msg :save_error, obj: @issue - end + flash[:error] = if issue_old_status_id == @issue.status_id + flash_msg :error_issue_status_could_not_changed + else + flash_msg :save_error, obj: @issue + end + return redirect_to(issue_path(@issue)) end