![]() |
update_batch() parameter to not escape not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: update_batch() parameter to not escape not working (/showthread.php?tid=1316) |
update_batch() parameter to not escape not working - tancredolt - 02-27-2015 Helo everybody! I found a problem in the update_batch function of the DB_active_rec class when a i try set to not escape the strings setting FALSE to the fourth parameter it don’t accept or don’t consider. Looking inside of the DB_active_rec class I see that this option don’t exists in the function, but exists in the function that executes the escape, so i just added the parameter for my application, but i think that was important that this option exists in the original class, without i need modify then, including the CI3 that not come with this option too. My solution: I open the class DB_active_rec.php and added the fourth parameter in the update_batch() method setting the default value = TRUE, and changing the third parameter in $this->set_update_batch(); line:1337 from TRUE by the variable of the fourth parameter, and it's all. I hope helps! |