Fix Mysql and Postgresql bug

This commit is contained in:
Frédéric Guillot
2014-09-10 16:51:44 +02:00
parent 28ff8dad91
commit cede5d5434
8 changed files with 17 additions and 58 deletions

View File

@@ -105,7 +105,7 @@ class SubtaskHistory extends BaseHistory
LEFT JOIN users AS assignees ON assignees.id=task_has_subtasks.user_id
WHERE subtask_has_events.project_id = ?
ORDER BY subtask_has_events.id DESC
LIMIT 0, '.$limit.'
LIMIT '.$limit.' OFFSET 0
';
$rq = $this->db->execute($sql, array($project_id));