Skip to content

Commit b390407

Browse files
committed
Fix #6117 clear contact types in update
1 parent d3bb74e commit b390407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/case_contacts/form_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ def update
2424
respond_to do |format|
2525
format.html do
2626
params[:case_contact][:status] = CaseContact.statuses[step] if !@case_contact.active?
27-
if @case_contact.update(case_contact_params)
27+
if @case_contact.update_cleaning_contact_types(case_contact_params)
2828
finish_editing
2929
else
3030
prepare_form
3131
render step
3232
end
3333
end
3434
format.json do
35-
if @case_contact.update(case_contact_params)
35+
if @case_contact.update_cleaning_contact_types(case_contact_params)
3636
render json: @case_contact, status: :ok
3737
else
3838
render json: @case_contact.errors.full_messages, status: :unprocessable_entity

0 commit comments

Comments
 (0)