From fab893e60b1edbb2d667c7545c8d7975a8a3e55b Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 2 Aug 2017 16:40:09 +1000 Subject: [PATCH] Fix paypal source_form view The previous commit broke the selectors used by app/assets/javascripts/spree/backend/paypal_express.js in the better_spree_paypal_express gem. We can remove this override of the paypal source_form view when we update better_spree_paypal_express to a version that includes the following commit: https://github.com/spree-contrib/better_spree_paypal_express/commit/4360a1fb82d30d7601bc6a98e7b74819f0b377f0 --- .../spree/admin/payments/source_forms/_paypal.html.haml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/views/spree/admin/payments/source_forms/_paypal.html.haml diff --git a/app/views/spree/admin/payments/source_forms/_paypal.html.haml b/app/views/spree/admin/payments/source_forms/_paypal.html.haml new file mode 100644 index 0000000000..e26db66846 --- /dev/null +++ b/app/views/spree/admin/payments/source_forms/_paypal.html.haml @@ -0,0 +1,8 @@ +-# We can remove this file as soon as we have a version of better_spree_paypal_express that includes: +-# https://github.com/spree-contrib/better_spree_paypal_express/commit/4360a1fb82d30d7601bc6a98e7b74819f0b377f0 + +-# The selectors in app/assets/javascripts/spree/backend/paypal_express.js don't work with the version +-# of the views we are using, so the warning below wasn't displaying without this override. + +#paypal-warning + %strong= t('no_payment_via_admin_backend', :scope => 'paypal')