Skip to content

Set Empty Values field has no effect on entry relations #1644

@jmauzyk

Description

@jmauzyk

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

  1. Create a product element with an entry relations field and set a relation.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions