mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
Merge branch 'MDL-29062' of git://github.com/timhunt/moodle
This commit is contained in:
commit
52d935de27
1 changed files with 2 additions and 2 deletions
|
@ -141,14 +141,14 @@ class qtype_multianswer extends question_type {
|
|||
if ($previousid != 0 && $previousid != $wrapped->id) {
|
||||
// for some reasons a new question has been created
|
||||
// so delete the old one
|
||||
delete_question($previousid);
|
||||
question_delete_question($previousid);
|
||||
}
|
||||
}
|
||||
|
||||
// Delete redundant wrapped questions
|
||||
if (is_array($oldwrappedquestions) && count($oldwrappedquestions)) {
|
||||
foreach ($oldwrappedquestions as $oldwrappedquestion) {
|
||||
delete_question($oldwrappedquestion->id);
|
||||
question_delete_question($oldwrappedquestion->id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue