Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

v1.4.10 list view sorting fails

Upgraded 1.4.5 site to 1.4.10 to find that clicking a column in a list view fails to sort by it. Same thing occurs on initial load of the list view.

Line 336 of ./modules/fuel/models/base_module_model.php contains:

if (!empty($col)) $this->db->order_by($this->db->escape($col), $this->db->escape($order), FALSE);

It seems the escape function is tagging the query's SORT BY inside (') string quotes rather than (`) field quotes

Swapping the line back to a previous version seem to fix it

if (!empty($col)) $this->db->order_by($col, $order, FALSE);

Sign In or Register to comment.