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
Describe the bug
On the Decimal property editor, when Minimum is set to 0, a user can still set negative values. When the property's Maximum is set to 10, a user can still set the value to 50
The same bug exists in both the Numeric and Decimal property editors.
To Reproduce
Steps to reproduce the behavior:
Fresh install the V14 RC
Create a document type with a new Decimal property editor
Configure its properties:
Minimum: 0
Maximum: 10
Step Size: 0.01
Allow Decimals: false
Save the property & docype
Create a new piece of content using the doctype
Set the decimal value to -50 (or any negative value)
Clicking save and publish incorrectly saves the document with -50, reloading the page returns -50
Note that the inverse behaviour also happens. The max value of 10 is also ignored, and I can enter 50 into the property.
Expected behavior
When minimum is set to 0, the lowest value the property should accept is 0. Negative values should return a validation error on Save and publish.
Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot shows the property editor configuration on the left. The right shows content using that editor with invalid data.
Desktop (please complete the following information):
liamlaverty
changed the title
[BUG]: Decimal property editor with "minimum" set to 0 allows negative values
[BUG]: Decimal property editor with "minimum" set to 0 allows negative values, Maximum set to 10 allows values above 10Apr 18, 2024
liamlaverty
changed the title
[BUG]: Decimal property editor with "minimum" set to 0 allows negative values, Maximum set to 10 allows values above 10
[BUG]: Decimal & Numeric property editor with "minimum" set to 0 allows negative values, Maximum set to 10 allows values above 10Apr 18, 2024
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.
Describe the bug
On the
Decimal
property editor, whenMinimum
is set to0
, a user can still set negative values. When the property'sMaximum
is set to 10, a user can still set the value to50
The same bug exists in both the
Numeric
andDecimal
property editors.To Reproduce
Steps to reproduce the behavior:
-50
(or any negative value)-50
, reloading the page returns-50
Note that the inverse behaviour also happens. The max value of 10 is also ignored, and I can enter
50
into the property.Expected behavior
When
minimum
is set to 0, the lowest value the property should accept is 0. Negative values should return a validation error on Save and publish.Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot shows the property editor configuration on the left. The right shows content using that editor with invalid data.
Desktop (please complete the following information):
Additional context
Related to https://github.com/umbraco/Umbraco.CMS.Backoffice/issues/1660
The text was updated successfully, but these errors were encountered: