[Language] Form Validation #935

Dentxinho opened this Issue Jan 17, 2012 · 0 comments


None yet

2 participants


There is a little problem with the language messages from form validation.

is_natural returns TRUE when number passed is in (0, 1, 2, ...)
is_natural_no_zero returns TRUE when number passed is in (1, 2, ...)

The messages are:

$lang['is_natural']         = "The %s field must contain only positive numbers.";
$lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero.";

These 2 messages say the same thing, with different words. However, 0 is not a positive number, so the message from is_natural is wrong.

@narfbg narfbg added a commit that referenced this issue Oct 5, 2012
@narfbg narfbg Fix issue #935 [ci skip] 2748254
@narfbg narfbg closed this Oct 5, 2012
@nonchip nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013
@narfbg narfbg Fix issue #935 [ci skip] 8d76777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment