mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-57791_master-fix2' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
e392b8bb2f
@ -84,7 +84,9 @@ class manager {
|
||||
|
||||
$params = array();
|
||||
|
||||
$sql = "SELECT DISTINCT am.* FROM {analytics_models} am";
|
||||
$fields = 'am.id, am.enabled, am.trained, am.target, ' . $DB->sql_compare_text('am.indicators') .
|
||||
', am.timesplitting, am.version, am.timecreated, am.timemodified, am.usermodified';
|
||||
$sql = "SELECT DISTINCT $fields FROM {analytics_models} am";
|
||||
if ($predictioncontext) {
|
||||
$sql .= " JOIN {analytics_predictions} ap ON ap.modelid = am.id AND ap.contextid = :contextid";
|
||||
$params['contextid'] = $predictioncontext->id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user