We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3bb74e commit b390407Copy full SHA for b390407
app/controllers/case_contacts/form_controller.rb
@@ -24,15 +24,15 @@ def update
24
respond_to do |format|
25
format.html do
26
params[:case_contact][:status] = CaseContact.statuses[step] if !@case_contact.active?
27
- if @case_contact.update(case_contact_params)
+ if @case_contact.update_cleaning_contact_types(case_contact_params)
28
finish_editing
29
else
30
prepare_form
31
render step
32
end
33
34
format.json do
35
36
render json: @case_contact, status: :ok
37
38
render json: @case_contact.errors.full_messages, status: :unprocessable_entity
0 commit comments