umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.5k stars 2.69k forks source link

BlockGrid and BlockList validation error does not update after the validation is fixed #17500

Open andr317c opened 1 day ago

andr317c commented 1 day ago

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

15.0.0-rc4

Bug summary

When I have a Block List/Grid with a min/max and I do not fulfil that requirement, I get a validation error, which is correct. But if I add enough blocks to match min/max, I still get the validation error. The error is removed after refreshing the page

BlockGridTest

Specifics

No response

Steps to reproduce

  1. Create Element Type
  2. Create a Block List/Grid with min and max (and element)
  3. Create Document Type with Block
  4. Create Document
  5. Dont fulfill requirement for min/max
  6. See Error
  7. Fix the validation error
  8. Still see Error

Expected result / actual result

I would expect that the validation error is gone after adding enough blocks

madsrasmussen commented 1 day ago

FYI: I can reproduce the issue in 14.3