Moodle

backup_course_silently does not include questions

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.5
  • Fix Version/s: STABLE backlog
  • Component/s: Backup
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

This method does not include questions because questions get flagged for inclusion in the backup in backup_check.html. They get included in mod/quiz/backuplib.php: quiz_check_backup_mods:

quiz_insert_category_and_question_ids($course, $backup_unique_code, $instances);
if ($course != SITEID){
question_insert_site_file_names($course, $backup_unique_code);
}

I'm guessing that each module that uses the question bank needs to do something similar. Would be nice if this logic got moved into backup/backuplib.php:backup_execute() so questions get backed up automatically when called with backup_course_silently().

Activity

Hide
Mary Parke added a comment -

Thank you for reporting this Jason.

To the core developers - this bug has actually impacted our course rollout for summer session and put us behind schedule for delivering courses to our faculty and students, although we are exceptionally lucky it was discovered before they began instruction.

MRooms has fixed this internally for our production site so we are now working on redoing our entire course, authentication, and enrollment rollout for summer session. But it would be great to push this out to core code as Jason recommends so that others may also benefit from this core bug fix.

Show
Mary Parke added a comment - Thank you for reporting this Jason. To the core developers - this bug has actually impacted our course rollout for summer session and put us behind schedule for delivering courses to our faculty and students, although we are exceptionally lucky it was discovered before they began instruction. MRooms has fixed this internally for our production site so we are now working on redoing our entire course, authentication, and enrollment rollout for summer session. But it would be great to push this out to core code as Jason recommends so that others may also benefit from this core bug fix.
Hide
Martin Dougiamas added a comment -

Eloy? 1.9.6?

Show
Martin Dougiamas added a comment - Eloy? 1.9.6?

People

Dates

  • Created:
    Updated: