-
-
Notifications
You must be signed in to change notification settings - Fork 707
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
[Invoices] Display the shipping category. #11805
[Invoices] Display the shipping category. #11805
Conversation
69c57ef
to
427d0f7
Compare
a4b2819
to
830d1d0
Compare
%strong= "#{t(:shipping)} " | ||
= "( #{t(:invoice_shipping_type)} #{raw(@order.shipping_method.name)} )" | ||
%strong= "#{@order.shipping_method.category} : " | ||
= "(#{raw(@order.shipping_method.name)})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this have to be raw? I don't want enterprises to inject code via the shipping method name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for raw
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, could we just remove the raw
in the template ?
%strong= "#{t(:shipping)} " | ||
= "( #{t(:invoice_shipping_type)} #{raw(@order.shipping_method.name)} )" | ||
%strong= "#{@order.shipping_method.category} : " | ||
= "(#{raw(@order.shipping_method.name)})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for raw
here.
830d1d0
to
e449ef0
Compare
@abdellani this is perfect. A tiny comment: can we either remove the ":" or remove the brackets? It's a bit weird to have both, but otherwise all good, ready to merge here 💪 |
ok @RachL |
@RachL done |
@abdellani thanks! It looks like we need to rebase right? |
c65c0f2
to
ab85adf
Compare
ab85adf
to
2b1d792
Compare
@RachL |
Perfect, merging! |
What? Why?
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates