Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca3cc7
)
MDL-55565 core_backup: Fix warning when restoring question categories
author
Jake Dallimore
<jake@moodle.com>
Mon, 15 Aug 2016 06:19:35 +0000
(14:19 +0800)
committer
Jake Dallimore
<jake@moodle.com>
Thu, 18 Aug 2016 02:15:51 +0000
(10:15 +0800)
Fixed a call to get_records_sql, which was being used incorrectly in
restore_find_best_target_context to determine a unique contextid.
backup/util/dbops/restore_dbops.class.php
patch
|
blob
|
blame
|
history
diff --git
a/backup/util/dbops/restore_dbops.class.php
b/backup/util/dbops/restore_dbops.class.php
index
6d48d36
..
a4c7075
100644
(file)
--- a/
backup/util/dbops/restore_dbops.class.php
+++ b/
backup/util/dbops/restore_dbops.class.php
@@
-795,7
+795,7
@@
abstract class restore_dbops {
// Prepare the query
list($stamp_sql, $stamp_params) = $DB->get_in_or_equal($stamps);
list($context_sql, $context_params) = $DB->get_in_or_equal($contexts);
- $sql = "SELECT contextid
+ $sql = "SELECT
DISTINCT
contextid
FROM {question_categories}
WHERE stamp $stamp_sql
AND contextid $context_sql";