form_validation bug for required (validation error message not being set)? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: form_validation bug for required (validation error message not being set)? (/showthread.php?tid=15127) |
form_validation bug for required (validation error message not being set)? - El Forum - 01-27-2009 [eluser]acesfull9[/eluser] This has been bothering me for an hour or two. I have a single field on my form that is required. The exact rules are "trim|required|numeric". Everything works fine except when I submit the form with no input (""). It fails the validation (as it should), but the error message is not being set. If i submit a space " ", it again, fails the validation as it should, but the error message is set ("The FIELD_NAME field is required."). Has anyone else noticed this? Thanks |