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

Assets field maxRelations is not respected when importing #1354

Closed
i-just opened this issue Jul 21, 2023 · 1 comment
Closed

Assets field maxRelations is not respected when importing #1354

i-just opened this issue Jul 21, 2023 · 1 comment
Assignees
Labels

Comments

@i-just
Copy link
Contributor

i-just commented Jul 21, 2023

Description

Importing into assets field - max relations limit is not respected. For example, if you have an assets field with max relations set to 1 and you have 3 assets mapped to that field, all 3 will be imported and related to the field.

Steps to reproduce

  1. create an assets field with max relations set to 1
  2. add that field to a section element type
  3. create a feed and map that assets field
  4. run import and see that all images from the feed were imported, ignoring the max relations limit

Example feed:

{
    "entries": {
        "title": "my test entry",
        "photos": [
            "<url>/puppy-chew-toy1.jpg",
            "<url>/puppies.jpeg"
        ],
    }
}

Additional info

  • Craft version: 4.4.16.1
  • PHP version: 8.1
  • Database driver & version: N/A
  • Plugins & versions: Feed Me 5.2.0
@angrybrad
Copy link
Member

Resolved in #1355 and will be included in the next v5 release.

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

2 participants