Compare commits
4 Commits
v3.9.0-rc3
..
v3.9.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 500c131eb4 | |||
| ea24bef18a | |||
| 698e225d61 | |||
| 9db6c361fd |
+1
-1
@@ -206,7 +206,7 @@ before_script:
|
||||
# We need the official upstream for comparison
|
||||
git remote add upstream https://github.com/moodle/moodle.git;
|
||||
|
||||
git fetch upstream master;
|
||||
git fetch upstream MOODLE_39_STABLE;
|
||||
export GIT_PREVIOUS_COMMIT="`git merge-base FETCH_HEAD $TRAVIS_COMMIT`";
|
||||
export GIT_COMMIT="$TRAVIS_COMMIT";
|
||||
export UPSTREAM_FETCH_HEAD=`git rev-parse FETCH_HEAD`
|
||||
|
||||
@@ -93,12 +93,14 @@ class provider implements
|
||||
$sql = "SELECT c.id
|
||||
FROM {quizaccess_seb_quizsettings} qs
|
||||
JOIN {course_modules} cm ON cm.instance = qs.quizid
|
||||
JOIN {modules} m ON cm.module = m.id AND m.name = :modulename
|
||||
JOIN {context} c ON c.instanceid = cm.id AND c.contextlevel = :context
|
||||
WHERE qs.usermodified = :userid
|
||||
GROUP BY c.id";
|
||||
|
||||
$params = [
|
||||
'context' => CONTEXT_MODULE,
|
||||
'modulename' => 'quiz',
|
||||
'userid' => $userid
|
||||
];
|
||||
|
||||
@@ -108,6 +110,7 @@ class provider implements
|
||||
FROM {quizaccess_seb_template} tem
|
||||
JOIN {quizaccess_seb_quizsettings} qs ON qs.templateid = tem.id
|
||||
JOIN {course_modules} cm ON cm.instance = qs.quizid
|
||||
JOIN {modules} m ON cm.module = m.id AND m.name = :modulename
|
||||
JOIN {context} c ON c.instanceid = cm.id AND c.contextlevel = :context
|
||||
WHERE qs.usermodified = :userid
|
||||
GROUP BY c.id";
|
||||
@@ -139,6 +142,7 @@ class provider implements
|
||||
}
|
||||
|
||||
list($insql, $params) = $DB->get_in_or_equal($cmids, SQL_PARAMS_NAMED);
|
||||
$params['modulename'] = 'quiz';
|
||||
|
||||
// SEB quiz settings.
|
||||
$sql = "SELECT qs.id as id,
|
||||
@@ -148,6 +152,7 @@ class provider implements
|
||||
qs.timemodified as timemodified
|
||||
FROM {quizaccess_seb_quizsettings} qs
|
||||
JOIN {course_modules} cm ON cm.instance = qs.quizid
|
||||
JOIN {modules} m ON cm.module = m.id AND m.name = :modulename
|
||||
WHERE cm.id {$insql}";
|
||||
|
||||
$quizsettingslist = $DB->get_records_sql($sql, $params);
|
||||
@@ -180,6 +185,7 @@ class provider implements
|
||||
FROM {quizaccess_seb_template} tem
|
||||
JOIN {quizaccess_seb_quizsettings} qs ON qs.templateid = tem.id
|
||||
JOIN {course_modules} cm ON cm.instance = qs.quizid
|
||||
JOIN {modules} m ON cm.module = m.id AND m.name = :modulename
|
||||
WHERE cm.id {$insql}";
|
||||
|
||||
$templatesettingslist = $DB->get_records_sql($sql, $params);
|
||||
@@ -262,8 +268,9 @@ class provider implements
|
||||
$sql = "SELECT qs.usermodified AS userid
|
||||
FROM {quizaccess_seb_quizsettings} qs
|
||||
JOIN {course_modules} cm ON cm.instance = qs.quizid
|
||||
JOIN {modules} m ON cm.module = m.id AND m.name = ?
|
||||
WHERE cm.id = ?";
|
||||
$params = [$context->instanceid];
|
||||
$params = ['quiz', $context->instanceid];
|
||||
$userlist->add_from_sql('userid', $sql, $params);
|
||||
}
|
||||
|
||||
|
||||
@@ -99,6 +99,15 @@ class quizaccess_seb_provider_testcase extends advanced_testcase {
|
||||
|
||||
$context = context_module::instance($this->quiz->cmid);
|
||||
|
||||
// Add another course_module of a differenty type - doing this lets us
|
||||
// test that the data exporter is correctly limiting its selection to
|
||||
// the quiz and not anything with the same instance id.
|
||||
// (note this is only effective with databases not using fed (+1000) sequences
|
||||
// per table, like postgres and mysql do, rendering this useless. In any
|
||||
// case better to have the situation covered by some DBs,
|
||||
// like sqlsrv or oracle than by none).
|
||||
$this->getDataGenerator()->create_module('label', array('course' => $this->course->id));
|
||||
|
||||
$contextlist = provider::get_contexts_for_userid($this->user->id);
|
||||
$approvedcontextlist = new approved_contextlist(
|
||||
$this->user,
|
||||
|
||||
+3
-3
@@ -29,9 +29,9 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2020061200.01; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
$version = 2020061500.00; // 20200615 = branching date YYYYMMDD - do not modify!
|
||||
// RR = release increments - 00 in DEV branches.
|
||||
// .XX = incremental changes.
|
||||
$release = '3.9rc3 (Build: 20200612)'; // Human-friendly version name
|
||||
$release = '3.9 (Build: 20200615)'; // Human-friendly version name
|
||||
$branch = '39'; // This version's branch.
|
||||
$maturity = MATURITY_RC; // This version's maturity level.
|
||||
$maturity = MATURITY_STABLE; // This version's maturity level.
|
||||
|
||||
Reference in New Issue
Block a user