![]() |
Fixing re-population of checkbox arrays - 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: Fixing re-population of checkbox arrays (/showthread.php?tid=5557) |
Fixing re-population of checkbox arrays - El Forum - 01-26-2008 [eluser]marlar[/eluser] Hi, Being still new to CI it is sometimes difficult to know if I am doing something wrong or if I happened to find a bug. In this case I believe I found a bug in the validation library. The problem is that checkboxes don't get re-populated if they are part of a group, like: Code: echo form_checkbox('group[]','family', $this->validation->set_checkbox('group', 'family')); I changed set_checkbox() in the validation libary to: Code: function set_checkbox($field = '', $value = '') Fixing re-population of checkbox arrays - El Forum - 01-26-2008 [eluser]Tom Glover[/eluser] Could be a bug ![]() ![]() Fixing re-population of checkbox arrays - El Forum - 01-26-2008 [eluser]marlar[/eluser] Good idea. http://ellislab.com/forums/viewthread/69949/ |