From 80cbe6b30faeab08b3f39c43be26404478b675bd Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 24 Sep 2020 14:48:10 +0100 Subject: [PATCH] Add route helper to call to sort_link so that it can find the necessary routes --- app/views/spree/admin/users/index.html.haml | 4 ++-- app/views/spree/admin/zones/index.html.haml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/spree/admin/users/index.html.haml b/app/views/spree/admin/users/index.html.haml index 9672637e6c..fb60688ce7 100644 --- a/app/views/spree/admin/users/index.html.haml +++ b/app/views/spree/admin/users/index.html.haml @@ -13,8 +13,8 @@ %col{ style: "width: 15%" } %thead %tr - %th= sort_link @search,:email, t(".user"), {}, {title: "users_email_title"} - %th= sort_link @search,:enterprise_limit, t(".enterprise_limit") + %th= sort_link [:spree, @search], :email, t(".user"), {}, {title: "users_email_title"} + %th= sort_link [:spree, @search], :enterprise_limit, t(".enterprise_limit") %th.actions %tbody - @users.each do |user| diff --git a/app/views/spree/admin/zones/index.html.haml b/app/views/spree/admin/zones/index.html.haml index 29c1cd4211..eefd8b9ab7 100644 --- a/app/views/spree/admin/zones/index.html.haml +++ b/app/views/spree/admin/zones/index.html.haml @@ -22,9 +22,9 @@ %col{style: "width: 15%"}/ %thead %tr - %th= sort_link @search,:name, t("spree.name"), title: 'zones_order_by_name_title' + %th= sort_link [:spree, @search], :name, t("spree.name"), title: 'zones_order_by_name_title' %th - = sort_link @search,:description, t("spree.description"), {}, {title: 'zones_order_by_description_title'} + = sort_link [:spree, @search], :description, t("spree.description"), {}, {title: 'zones_order_by_description_title'} %th= t("spree.default_tax") %th.actions %tbody