![]() |
Form Validation Rules Bug - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: Form Validation Rules Bug (/showthread.php?tid=379) |
Form Validation Rules Bug - mertdogan - 11-26-2014 I found a new bug about form validation set_rules. If we use form validation rules as: PHP Code: $this->form_validation->set_rules('aciklama','AÇIKLAMA','trim|strip_tags|xss_clean|prep_for_form|'); This is generating Code: Unable to access an error message corresponding to your field name. If you change this rules as: PHP Code: $this->form_validation->set_rules('aciklama','AÇIKLAMA','trim|strip_tags|xss_clean|prep_for_form'); error message removed and works again. This bug taken my 1 hours to find it ![]() RE: Form Validation Rules Bug - slax0r - 11-27-2014 This is not a bug. Trailing | does not make sense. If this is considered as a bug, the bug was in 2.x and fixed in 3.0 RE: Form Validation Rules Bug - sv3tli0 - 11-30-2014 Now 1 hour is 1 hour. When you are writing / validating code you must follow standards. Not just to believe that the framework will cover 100% of any possible mistake. As slax0r notice in this case its more a Bug if its not making error notices because your syntax has a mistake and it should be fixed. You know what is doing base PHP when there is a syntax error.. RE: Form Validation Rules Bug - spirant - 07-28-2015 I had the same issue so was glad to find this thread ;-) I've also spent an hour+ getting to the bottom of this. Although this change probably does not amount to a bug, it should probably be included in the upgrade notes from 2.x to 3.x as previously accepted functionality is now no longer valid. RE: Form Validation Rules Bug - Oxiadust - 07-30-2015 i found also a bug in the CodeIgniter 3.0 is_unique method, it always returns false so i copy the is_unique method from CodeIgniter 2.0 and it's work now, but I'm not sure if it's the right thing to do... |