From d62d89aa4fd20d28a10befe5c263be9a636f356e Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 12 Mar 2020 12:44:50 +0100 Subject: [PATCH] Fix order index search form Fixes: 2) spree/admin/orders/index.html.haml print invoices button displays button when invoices are enabled Failure/Error: = form_tag nil, {name: "orders_form", "ng-submit" => "fetchResults()"} do ActionView::Template::Error: No route matches {:action=>"index", :controller=>"spree/admin/orders"} # ./app/views/spree/admin/orders/_filters.html.haml:2:in `_a1b716152f19bf3f4772a98e56adf411' # ./app/views/spree/admin/orders/index.html.haml:20:in `block in _d04c5552f7a480bf5f02e5fad0c10de6' # ./app/views/spree/admin/orders/index.html.haml:19:in `_d04c5552f7a480bf5f02e5fad0c10de6' # ./spec/views/spree/admin/orders/index.html.haml_spec.rb:26:in `block (3 levels) in ' # ./spec/views/spree/admin/orders/index.html.haml_spec.rb:8:in `block (2 levels) in ' # ------------------ # --- Caused by: --- # ActionController::UrlGenerationError: # No route matches {:action=>"index", :controller=>"spree/admin/orders"} # ./app/views/spree/admin/orders/_filters.html.haml:2:in `_a1b716152f19bf3f4772a98e56adf411' 3) spree/admin/orders/index.html.haml print invoices button does not display button when invoices are disabled Failure/Error: = form_tag nil, {name: "orders_form", "ng-submit" => "fetchResults()"} do ActionView::Template::Error: No route matches {:action=>"index", :controller=>"spree/admin/orders"} # ./app/views/spree/admin/orders/_filters.html.haml:2:in `_a1b716152f19bf3f4772a98e56adf411' # ./app/views/spree/admin/orders/index.html.haml:20:in `block in _d04c5552f7a480bf5f02e5fad0c10de6' # ./app/views/spree/admin/orders/index.html.haml:19:in `_d04c5552f7a480bf5f02e5fad0c10de6' # ./spec/views/spree/admin/orders/index.html.haml_spec.rb:34:in `block (3 levels) in ' # ./spec/views/spree/admin/orders/index.html.haml_spec.rb:8:in `block (2 levels) in ' # ------------------ # --- Caused by: --- # ActionController::UrlGenerationError: # No route matches {:action=>"index", :controller=>"spree/admin/orders"} # ./app/views/spree/admin/orders/_filters.html.haml:2:in `_a1b716152f19bf3f4772a98e56adf411' --- app/views/spree/admin/orders/_filters.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/orders/_filters.html.haml b/app/views/spree/admin/orders/_filters.html.haml index b41c2d194a..5b1c9b4024 100644 --- a/app/views/spree/admin/orders/_filters.html.haml +++ b/app/views/spree/admin/orders/_filters.html.haml @@ -1,5 +1,5 @@ %div{"data-hook" => "admin_orders_index_search"} - = form_tag nil, {name: "orders_form", "ng-submit" => "fetchResults()"} do + = form_tag :orders, {name: "orders_form", "ng-submit" => "fetchResults()"} do .field-block.alpha.four.columns .date-range-filter.field = label_tag nil, t(:date_range)