Skip to content
Snippets Groups Projects
Commit aa9113ce authored by Alberto Siles's avatar Alberto Siles
Browse files

Issue #3450359 by tbwetix: Fix the filter method in the commerce coupon redemption form template

parent b8d86c43
No related branches found
No related tags found
2 merge requests!97Issue #3350552 by super_romeo: Warning: Undefined variable...,!94Issue #3350552 by super_romeo: Warning: Undefined variable...
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="coupon-redemption-form__coupons coupon-redemption-form__coupons--multiple"> <div class="coupon-redemption-form__coupons coupon-redemption-form__coupons--multiple">
<h3> {{ 'Applied coupons'|t }} </h3> <h3> {{ 'Applied coupons'|t }} </h3>
<table> <table>
{% for key, coupon in form.coupons|filter(key => key|first != '#' ) %} {% for key, coupon in form.coupons|filter((coupon, key) => key|first != '#') %}
<tr> <tr>
<td> {{ coupon.code }} </td> <td> {{ coupon.code }} </td>
<td> {{ coupon.remove_button }} </td> <td> {{ coupon.remove_button }} </td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment