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.