Navigation Button [message #5543] |
Sat, 14 May 2016 06:04 |
htManager
Messages: 439 Registered: May 2014
|
Senior Member |
|
|
Hi Tony,
after copying the new includes files from v1.94.0 from 04/01/2016 I get the following error in field Seq when changing Navigation buttons:
Value is not a whole number (see also attached screen shot)
Do I have to copy something else? As I see there are no database changes to do.
-
Attachment: radicore.png
(Size: 189.57KB, Downloaded 1310 times)
[Updated on: Sat, 14 May 2016 06:05] Report message to a moderator
|
|
|
Re: Navigation Button [message #5544 is a reply to message #5543] |
Sun, 15 May 2016 04:10 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I recently switched to the filter_var() function to validate all numeric input, and it seemed to be working until I tried this very same task. It seems that this function does not like leading zeroes such as '001', although it will accept a single zero '0'. Apparently this is *NOT* a bug!!!
I have therefore had to modify my validation class (update attached) to strip any leading zeroes before passing the value to the filter_var() function.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|