Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promotion name is empty in order search form #696

Open
mg-partec opened this issue Nov 9, 2016 · 0 comments
Open

Promotion name is empty in order search form #696

mg-partec opened this issue Nov 9, 2016 · 0 comments

Comments

@mg-partec
Copy link

The list of promotions in spree backend / orders is empty when Spree_i18n is activated.

spree_backend/app/views/spree/admin/orders/index.html.erb:110

Spree::Promotion.applied.pluck(:name, :id)

The field "name" is empty in spree_promotions and should be read from spree_promotion_translations
It works with:

Spree::Promotion.applied.collect{|p|[p.name, p.id]}

Spree 3.0.8 + Spree_i18n 3.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant