-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Labels
Description
Description
We have an entry relations field on Commerce Product elements that is used to add banners to the product page. Our XML data feed provides individual banner titles as subnodes under a Banners
element:
<Banners>
<Banner>Banner Title</Banner>
</Banners>
This works as expected. However, when the Set Empty Values setting is enabled and no banners are associated in the product data feed (as shown below), banner entry relations are not removed.
<Banners>
</Banners>
Steps to reproduce
- Create a product element with an entry relations field and set a relation.
- Run a feed import with an empty node for the relations field. Existing relations are not removed.
Additional info
- Craft version: Pro 4.14.15
- PHP version: 8.2.28
- Database driver & version: PostgreSQL 14.17
- Plugins & versions:
- Feed Me 5.10.0
- Commerce 4.8.3