Skip to content

Commit

Permalink
Merge pull request #5654 from rubyforgood/fix-prod
Browse files Browse the repository at this point in the history
fix prod more?
  • Loading branch information
compwron authored May 5, 2024
2 parents adf939a + c50eb54 commit dbc37a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/controllers/case_contacts/form_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ def show
def update
@case_contact = CaseContact.find(params[:case_contact_id])
authorize @case_contact
params[:case_contact][:status] = step.to_s unless @case_contact.active?
if @case_contact.active?
# do nothing
else
params[:case_contact] ||= []
params[:case_contact][:status] = step.to_s # TODO: where is this used?? what is it for??
end

remove_unwanted_contact_types
remove_nil_draft_ids
if @case_contact.update(case_contact_params)
Expand Down

0 comments on commit dbc37a6

Please sign in to comment.