You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace {% if data.usageLimit is empty %} with {% if not data.usageLimit %} in src/Sylius/Bundle/AdminBundle/templates/promotion/grid/field/usage.html.twig line 1.
The text was updated successfully, but these errors were encountered:
jbcr
added a commit
to jbcr/Sylius
that referenced
this issue
Jan 7, 2025
Sylius version affected: 2.0.2
Description
When you navigate to the cart promotion index, an error
division by zero
can occur if a promotion has the fieldUsage limit
set to zero.Steps to reproduce
Usage limit
to0
and save.This procedure works on Sylius demonstration instance.
Possible Solution
Replace
{% if data.usageLimit is empty %}
with{% if not data.usageLimit %}
insrc/Sylius/Bundle/AdminBundle/templates/promotion/grid/field/usage.html.twig
line 1.The text was updated successfully, but these errors were encountered: