Skip to content

Commit

Permalink
Fix products edit page by not rendering the same field twice
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Jan 21, 2021
1 parent f5f9284 commit cf2b90e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<div class="ui hidden element">
{% if product.simple %}
{{ form_row(form.variant.translations) }}
{{ form_row(form.variantSelectionMethod) }}
{% endif %}
{{ form_row(form.variantSelectionMethod) }}
</div>
</div>
</div>
Expand All @@ -34,7 +34,7 @@
{% if product.simple %}
<div class="ui one column stackable grid">
<div class="column">
<h4 class="ui dividing header">{{ 'sylius.ui.pricing'|trans }}</h4>
<h4 class="ui dividing header">{{ 'sylius.ui.pricing'|trans }}</h4>
{% include "@SyliusAdmin/Product/_channel_pricing.html.twig" with { product: product, variantForm: form.variant } only %}
</div>
</div>
Expand Down

0 comments on commit cf2b90e

Please sign in to comment.