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

[CatalogPromotion][Admin] Fix displaying fixed discount action on catalog show page #13397

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Dec 15, 2021

Q A
Branch? 1.11
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #13325
License MIT

@GSadee GSadee added Admin AdminBundle related issues and PRs. API APIs related issues and PRs. Bug Confirmed bugs or bugfixes. labels Dec 15, 2021
@GSadee GSadee requested a review from a team as a code owner December 15, 2021 10:17
Comment on lines +10 to +17
{% for channelCode, channelConfiguration in action.configuration %}
<tr>
<td class="five wide"><strong class="gray text">{{ channelCode }}</strong></td>
<td {{ sylius_test_html_attribute('action-' ~ channelCode ~ '-amount') }}>
{{ money.format(channelConfiguration.amount, currencies[channelCode]) }}
</td>
</tr>
{% endfor %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% for channelCode, channelConfiguration in action.configuration %}
<tr>
<td class="five wide"><strong class="gray text">{{ channelCode }}</strong></td>
<td {{ sylius_test_html_attribute('action-' ~ channelCode ~ '-amount') }}>
{{ money.format(channelConfiguration.amount, currencies[channelCode]) }}
</td>
</tr>
{% endfor %}
{% for channelCode, channelConfiguration in action.configuration %}
<tr>
<td class="five wide"><strong class="gray text">{{ channelCode }}</strong></td>
<td {{ sylius_test_html_attribute('action-' ~ channelCode ~ '-amount') }}>
{{ money.format(channelConfiguration.amount, currencies[channelCode]) }}
</td>
</tr>
{% endfor %}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it on purpose to make it display well in HTML 😃

@AdamKasp AdamKasp merged commit 551d34d into Sylius:1.11 Dec 16, 2021
@AdamKasp
Copy link
Contributor

Thanks, Grzegorz! 🎉

@GSadee GSadee deleted the catalog-promotion-fixed-discount-show branch December 16, 2021 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs. API APIs related issues and PRs. Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants