MDL-51460 tool_lp: List frameworks' API function does not support order
This commit is contained in:
committed by
Frederic Massart
parent
904291f21f
commit
b397969665
@@ -413,7 +413,7 @@ class api {
|
||||
|
||||
// OK - all set.
|
||||
list($insql, $inparams) = $DB->get_in_or_equal(array_keys($contexts), SQL_PARAMS_NAMED);
|
||||
return competency_framework::get_records_select("contextid $insql", $inparams, $sort, '*', $skip, $limit);
|
||||
return competency_framework::get_records_select("contextid $insql", $inparams, $sort . ' ' . $order, '*', $skip, $limit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user