10000 [BUG] Asset Upload of advancedManyToManyRelation and manyToManyRelation by storbahn · Pull Request #13703 · pimcore/pimcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUG] Asset Upload of advancedManyToManyRelation and manyToManyRelation #13703

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

Merged

Conversation

storbahn
Copy link
Contributor

Fix validation of asset upload of advancedManyToManyRelation and manyToManyRelation (#13543)

If this.fieldConfig.maxItems is not defined (null) then 0 >= null is always true and we get the error message "Limit Reached".

asset-upload_limit_reached_error

@github-actions
Copy link
github-actions bot commented Nov 29, 2022

Review Checklist

  • Target branch (10.5 for bug fixes, others 11.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

@aryaantony92 aryaantony92 added this to the 10.5.12 milestone Nov 29, 2022
@Corepex Corepex merged commit df53663 into pimcore:10.5 Dec 7, 2022
@Corepex
Copy link
Contributor
Corepex commented Dec 7, 2022

@storbahn, thanks for your PR. We must have missed that case while testing the upload limit. 👍

@storbahn storbahn deleted the bugfix/many-to-many-upload-limit-bug branch December 23, 2022 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0