eZ Community » Forums » Suggestions » Defining min value for Integer...
expandshrink

Defining min value for Integer datatype sets default value as well

Defining min value for Integer datatype sets default value as well

Thursday 28 June 2012 3:28:23 pm

Hi,

I wanted a default-less integer attribute. So I left the default value box empty. However, I also wanted to define a minimum value for the same integer attribute. So I wrote 0 in the min value box.

Result? 0 as default value, leaving the has_content property useless for if-tests in my templates. Could you please not use the min value as a fallback default value?

On a sidenote, you should also take advantage of existing HTML5 input types – in this case, number.

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from