feed-me
feed-me copied to clipboard
Unable to clear relationship data
Description
When importing data to a relationship field Feed Me does not remove the linked entry/category when the feed specifies an empty relationship.
Steps to reproduce
As shown in the screenshots below;
The field "Academiejaar" will be the example. Here it already contains content.
In our feed the key academic_year
is empty
The setup for Feed Me
The logs after import.
Here we don't even see the field being processed.
But if we change the value to a different academy year, feed me does update to the correct value
Additional info
- Craft version: 3.6.3
- PHP version: 7.3.27
- Database driver & version: MySQL 5.7.25
- Plugins & versions: Feed Me 4.3.4
My guess it's the same issue as https://github.com/craftcms/feed-me/issues/797 where blank fields in the incoming JSON are ignored.
This should be resolved with the new “Set Empty Values” setting added in Feed Me 4.6.0 (Craft 3) and 5.1.0 (Craft 4) (https://github.com/craftcms/feed-me/pull/1228).