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

Validation error still triggered after fixing amount on block list #15368

Open
bmoore99 opened this issue Dec 5, 2023 · 6 comments
Open

Validation error still triggered after fixing amount on block list #15368

bmoore99 opened this issue Dec 5, 2023 · 6 comments

Comments

@bmoore99
Copy link

bmoore99 commented Dec 5, 2023

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

12.2.0

Bug summary

If a block list has a max amount, saving more than that amount then reducing the amount to fix the validation error still fails to publish.

Specifics

Checked on Chrome and Safari browsers.

Steps to reproduce

  1. Create a simple block list data type with a single block option and max amount set to 1.
    image

  2. Use this block list on a required property type.
    image

  3. Create content with this property and add 2 items in this block list then save (buggy error message btw).
    image

  4. Remove 1 item then click the "Save and publish" button.
    image

Note the user can only proceed to publish this page if they first click the "Save" button or leave the page and go back.

Expected result / actual result

Should be able to "Save and publish" successfully after reducing the block list amount to a valid amount.

Copy link

github-actions bot commented Dec 5, 2023

Hi there @bmoore99!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@andr317c andr317c self-assigned this Dec 7, 2023
@andr317c
Copy link
Contributor

andr317c commented Dec 7, 2023

Hey! Thanks for reporting this issue! 😄 I was able to reproduce it on versions 12.3.3, 13.0.0-rc3, and 10.8.0.

It seems that if you do not press save at all and only Save and publish, you do not get the error.

But if you press Save when there is a validation error, you run into this issue. setting the property to mandatory is not necessary to reproduce this issue.

The issue also affects the BlockGridEditor.

I will go ahead and mark this issue as an up for grabs! 😄

Copy link

github-actions bot commented Dec 7, 2023

Hi @bmoore99,

We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know.

For more information about issues and states, have a look at this blog post.

Thanks muchly, from your friendly Umbraco GitHub bot :-)

@andr317c andr317c removed their assignment Dec 7, 2023
@nagolucky18
Copy link
Contributor

I can look at this one.

@nagolucky18
Copy link
Contributor

I am no longer working on this one.

@RuddyOne
Copy link

RuddyOne commented Feb 8, 2024

Pretty sure this also happens with the "title" of the node, if you create a node and fill nothing in. Then save the page, this will cause the validation errors to appears correctly. Now fill out all of the fields including the node title and save and publish.

You will see the validation for the title still triggers even though it has correctly been filled out. Nothing is saved. Same bug, or should I raise another?

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

No branches or pull requests

4 participants