diff --git a/app/overrides/spree/admin/orders/customer_details/edit/replace_customer_search.html.haml.deface b/app/overrides/spree/admin/orders/customer_details/edit/replace_customer_search.html.haml.deface deleted file mode 100644 index 65784eb3d7..0000000000 --- a/app/overrides/spree/admin/orders/customer_details/edit/replace_customer_search.html.haml.deface +++ /dev/null @@ -1,6 +0,0 @@ -/ replace "erb[loud]:contains('hidden_field_tag :customer_search')" - -- content_for :app_wrapper_attrs do - = 'ng-app=admin.orders' - -= hidden_field_tag :customer_search_override, nil, distributor_id: @order.distributor_id, :class => 'fullwidth title customer-search-override' diff --git a/app/views/spree/admin/orders/customer_details/edit.html.haml b/app/views/spree/admin/orders/customer_details/edit.html.haml index 4396f7ccd6..36ecdb70a0 100644 --- a/app/views/spree/admin/orders/customer_details/edit.html.haml +++ b/app/views/spree/admin/orders/customer_details/edit.html.haml @@ -13,7 +13,9 @@ #select-customer{"data-hook" => ""} %fieldset.no-border-bottom %legend{:align => "center"}= Spree.t(:customer_search) - = hidden_field_tag :customer_search, nil, :class => 'fullwidth title' + - content_for :app_wrapper_attrs do + = 'ng-app=admin.orders' + = hidden_field_tag :customer_search_override, nil, distributor_id: @order.distributor_id, :class => 'fullwidth title customer-search-override' = render :partial => "spree/admin/orders/customer_details/autocomplete", :formats => :js = render :partial => 'spree/shared/error_messages', :locals => { :target => @order }