diff --git a/app/controllers/crm/customers_controller.rb b/app/controllers/crm/customers_controller.rb index 886f66d6..518c2e3e 100644 --- a/app/controllers/crm/customers_controller.rb +++ b/app/controllers/crm/customers_controller.rb @@ -142,7 +142,7 @@ class Crm::CustomersController < BaseCrmController else - format.html { render :edit } + format.html { render :index } format.json { render json: @crm_customer.errors, status: :unprocessable_entity } end diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index d76c94ac..18605877 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -72,9 +72,7 @@ <%= f.hidden_field :id, :class => "form-control col-md-6 " %> -