Skip to content

Commit

Permalink
Fix #6117 clear contact types in update
Browse files Browse the repository at this point in the history
  • Loading branch information
thejonroberts committed Dec 3, 2024
1 parent d3bb74e commit b390407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/case_contacts/form_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ def update
respond_to do |format|
format.html do
params[:case_contact][:status] = CaseContact.statuses[step] if !@case_contact.active?
if @case_contact.update(case_contact_params)
if @case_contact.update_cleaning_contact_types(case_contact_params)
finish_editing
else
prepare_form
render step
end
end
format.json do
if @case_contact.update(case_contact_params)
if @case_contact.update_cleaning_contact_types(case_contact_params)
render json: @case_contact, status: :ok
else
render json: @case_contact.errors.full_messages, status: :unprocessable_entity
Expand Down

0 comments on commit b390407

Please sign in to comment.