You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to 5.8.0, categories imported by title to a category field do not maintain hierarchy and include ancestors if there are more than one category with different levels.
After import with 5.7.0:
After import with 5.8.0:
Steps to reproduce
Set up an element data import and configure a node to import categories by title to a category field.
Import element data with a node that contains more than one category that have different levels in the category structure.
Additional info
Craft version: Pro 4.12.5
PHP version: 8.2.4
Database driver & version: PostgreSQL 14.7
The text was updated successfully, but these errors were encountered:
Hi, thanks for getting in touch! I’m unable to replicate this on a clean install. Are you importing into an Entry? Could you share a snippet of your feed and a screenshot of the mapping screen?
I dug into this a bit more to try and figure out the source of the issue, and while examining the relations table I noticed that there was a category saved in the relations table that wasn't displaying. The category was one by the same name (Frame & Fork), but in a different category group. It seems that something changed in 5.8.0 so that when searching for category matches by title, it no longer scopes to the category groups defined by the field. As a result, both categories with matching titles are saved to the relation field, which in turn prevents the parent category from being saved.
Description
After upgrading to 5.8.0, categories imported by title to a category field do not maintain hierarchy and include ancestors if there are more than one category with different levels.
After import with 5.7.0:
After import with 5.8.0:
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: