Dolphiq/craft-plugin-redirect

Error Feed-me import

Opened this issue · 0 comments

An error occurs when mapping a feed.
The {% for %} tag’s support for the if param is removed in Craft4. Use |filter instead.

Code needs to be changed in templates/_feedme/map.html.

Line 68
{% for field in fields if field and craft.feedme.fieldCanBeUniqueId(field) %}

Needs to be

{% for field in fields|filter(field => field and craft.feedme.fieldCanBeUniqueId(field)) -%}