Commit f3317807 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

mysql: fix query for retrieving plans list for mysql

Moved the limit/offset out of the query text and
left to dmlib. (Slightly modification of Stacey Walkers patch)
Signed-off-by: default avatarDan Poltawski <>
parent 0f7281a4
......@@ -96,8 +96,7 @@ class ArtefactTypePlan extends ArtefactType {
($plans = get_records_sql_array("SELECT * FROM {artefact}
WHERE owner = ? AND artefacttype = 'plan'
OFFSET ? LIMIT ?",array($USER->get('id'), $offset, $limit)))
ORDER BY id", array($USER->get('id')), $offset, $limit))
|| ($plans = array());
$result = array(
'count' => count_records('artefact', 'owner', $USER->get('id'), 'artefacttype', 'plan'),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment