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.49k stars 2.69k forks source link

No validation message when decimals are added to a Numeric property #14117

Open FransdeJong opened 1 year ago

FransdeJong commented 1 year ago

Which Umbraco version are you using?

10.4.2 10.5.0 11.3.0

Bug summary

A numeric property editor won't save decimals in 10.4.2, 10.5.0 and 11.3.0.

Specifics

Tested on a clean install of 10.4.2, 10.5.0 and 11.3.0

decimal issue

Steps to reproduce

  1. Install 10.4.2, 10.5.0 or 11.3.0
  2. Add a doctype and allow at root
  3. Add a property, select numeric and set step to 0.01
  4. Add content and try and save 1 in the property (this works)
  5. Now save the same property with 1.01 (this fails)

Expected result / actual result

I expected it to save a decimal, it doesn't save it instead.

github-actions[bot] commented 1 year ago

Hi there @FransdeJong!

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 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 :robot: :slightly_smiling_face:

ronaldbarendse commented 1 year ago

The default Numeric data type uses Umbraco.Integer as property editor, so only whole numbers are allowed. But even with that in mind, there's a few issues I can quickly spot:

FransdeJong commented 1 year ago

Arnold just pointed me at the integer part. I totally overlooked it since I remember only one numeric being present in V8? Also the lack of feedback didn't point me in the right direction.

elit0451 commented 1 year ago

Yes, providing some sort of validation message would be very useful in this case. Everything that @ronaldbarendse pointed out is a good candidate for an up-for-grabs fix.

github-actions[bot] commented 1 year ago

Hi @FransdeJong,

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 :-)