mirror of
https://github.com/moodle/moodle.git
synced 2025-05-12 03:05:42 +02:00
Merge branch 'MDL-49547' of git://github.com/timhunt/moodle
This commit is contained in:
commit
c157a42a7b
@ -3910,6 +3910,11 @@ class restore_create_categories_and_questions extends restore_structure_step {
|
||||
|
||||
$data = (object)$data;
|
||||
$newquestion = $this->get_new_parentid('question');
|
||||
$questioncreated = (bool) $this->get_mappingid('question_created', $this->get_old_parentid('question'));
|
||||
if (!$questioncreated) {
|
||||
// This question already exists in the question bank. Nothing for us to do.
|
||||
return;
|
||||
}
|
||||
|
||||
if (!empty($CFG->usetags)) { // if enabled in server
|
||||
// TODO: This is highly inefficient. Each time we add one tag
|
||||
|
Loading…
x
Reference in New Issue
Block a user