ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: AaronB on March 22, 2014, 08:55:36 am

Title: Field Population for Number of Icon Images
Post by: AaronB on March 22, 2014, 08:55:36 am
Manage Membergroups> Edit Membergroup, field is 'Number of icon images'.

If one sets the number to a value that has a decimal, such as 2.5 or 0.a, the field will instantly self populate to a value of '99'. As well, the software will permit 99 icons to be displayed on the membergroup.

It seems to me that the decimal value input is not being error trapped and perhaps should be. I would also suggest the limiting of shown icons to seven or eight icons max.
Title: Re: Field Population for Number of Icon Images
Post by: emanuele on March 22, 2014, 11:14:42 am
Seems to be the validator class... That's @Spuds' fault! :P
Title: Re: Field Population for Number of Icon Images
Post by: Spuds on March 23, 2014, 09:26:30 am
I'll take a look at enforcing a max there as well, although this
Code: [Select]
onkeyup="if (this.value.length > 2) this.value = 99;"
is the cause

Title: Re: Field Population for Number of Icon Images
Post by: emanuele on March 23, 2014, 11:12:30 am
/me is innocent! (I hope :P)

I was thinking, another test to add to the validation class is "range" (unless it's already there and I missed it).