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

MNTP does not respect min and max configuration #16442

Closed
kjac opened this issue May 29, 2024 · 0 comments · Fixed by umbraco/Umbraco.CMS.Backoffice#2094
Closed

MNTP does not respect min and max configuration #16442

kjac opened this issue May 29, 2024 · 0 comments · Fixed by umbraco/Umbraco.CMS.Backoffice#2094

Comments

@kjac
Copy link
Contributor

kjac commented May 29, 2024

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

V14 RC5

Bug summary

The "Minimum number of items" and "Maximum number of items" on an MNTP is not respected by the UI, nor by the server 😱

Given this configuration:

image

...I can save and publish documents with both 1 and 10 selected items.

Specifics

No response

Steps to reproduce

  1. Create a doctype with an MNTP property, which has min and max items configured.
  2. Create a document based on this doctype, and pick either too many or too few items.
  3. Save and publish.

Expected result / actual result

It should be possible to save the document (with a warning to follow, stating that too many/too few items has been added?), but it should definitively not be possible to publish the document.

Both client and server should respect and validate the configuration, as a bare minimum at publish time.


This item has been added to our backlog AB#41892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants