You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
15.3.0-rc
Bug summary
Currently, I have content with a block Grid Editor that contains an area with a minimum or maximum amount of blocks required.
If I try to publish content with too few blocks in an area, I of course get a validation error. But if I add enough blocks to fit the minimum required amount of blocks, I still get an error when I try to publish the document. If I reload the page, I am allowed to publish, but this should not be necessary
Specifics
No response
Steps to reproduce
Create two element types 'Element One' and 'Element Two'
Create a Block grid editor
Add both block element types as blocks to the block grid
Element One Block should be allowed at root and contain an area with min required blocks 2
Element Two Block should be allowed in areas
Create a document type with allow at root, with the Block Grid editor
Create content with 1 Element One block.
Add one Element Two block to the area
Click Save and Publish
See Validation error, which is correct.
Add another Element Two block to the area which should fulfill the requirement.
Click Save and Publish.
Get error when trying to publish.
Reload page.
Click Save and Publish
Expected result / actual result
Actual: I have to reload or go out of the content node and back again for it to allow me to publish the node.
Expected: That I would be allowed to publish without reloading.
The text was updated successfully, but these errors were encountered:
Have reproduced this one. As far as I can tell it's an issue on the front-end as I've looked at the validation responses coming back from the server. In the first, invalid case, we get a response of:
"errors": {
"$.values[1].value": [
"The content amount requirements are not met for one or more areas."
]
}
Which is expected.
Having corrected by adding the required number of blocks, we get a 200 response from the server for validation.
But we still see this notification on the client side:
After a look at how the validation takes place, it does seem to be a frontend validation error, where in the final call before going on to the Publish method, it complains about the following:
UmbValidationContext
UmbFormControlValidator
UmbServerModelValidatorContext
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
15.3.0-rc
Bug summary
Currently, I have content with a block Grid Editor that contains an area with a minimum or maximum amount of blocks required.
If I try to publish content with too few blocks in an area, I of course get a validation error. But if I add enough blocks to fit the minimum required amount of blocks, I still get an error when I try to publish the document. If I reload the page, I am allowed to publish, but this should not be necessary
Specifics
No response
Steps to reproduce
Expected result / actual result
Actual: I have to reload or go out of the content node and back again for it to allow me to publish the node.
Expected: That I would be allowed to publish without reloading.
The text was updated successfully, but these errors were encountered: