Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matches a category with the same name from the wrong category group. #1530

Open
Patchyy opened this issue Oct 10, 2024 · 0 comments
Open

Matches a category with the same name from the wrong category group. #1530

Patchyy opened this issue Oct 10, 2024 · 0 comments
Labels

Comments

@Patchyy
Copy link

Patchyy commented Oct 10, 2024

Description

When using the Feed Me plugin to import data from Mercury, the configuration is set to match category fields from the Mercury data and import them into specific Craft entries. In our case, there were two category groups with categories that shared the same name.

For example:
Category Group A: "Vacancy Branch" includes a category named "Medical Devices."
Category Group B: "News Type" also has a category named "Medical Devices."
When the import was executed, instead of assigning the "Medical Devices" category from Vacancy Branch, it incorrectly assigned the one from News Type due to the identical category name.

Steps to reproduce

  1. Create two category groups in Craft CMS:
    -Category Group A (e.g., Vacancy Branch)
    -Category Group B (e.g., News Type)
  2. Add a category with the same name to both category groups (e.g., Medical Devices).
  3. Configure Feed Me to import categories from Mercury and match based on the category name.
  4. Set Feed Me to import into an entry, and specify that it should use categories from Vacancy Branch.
  5. Run the import.
  6. Observe that the category imported is from the wrong category group (i.e., it assigns "Medical Devices" from News Type instead of from Vacancy Branch).

Additional info

  • Craft version: Craft Pro 4.12.5
  • PHP version: 8.2.23
  • Database driver & version: MariaDB 10.6.19
  • Plugins & versions: Feed Me | 5.8.0
@Patchyy Patchyy added the bug label Oct 10, 2024
@Patchyy Patchyy changed the title Matches a categorie with the same name from the wrong categorie group. Matches a category with the same name from the wrong categorie group. Oct 10, 2024
@Patchyy Patchyy changed the title Matches a category with the same name from the wrong categorie group. Matches a category with the same name from the wrong category group. Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant