github studentquiz/moodle-mod_studentquiz v2.1.0
Orphaned Section Fix

latest releases: v5.2.1, v5.2.0, v5.1.0...
6 years ago

Today we publish a new release for StudentQuiz addressing the reported issue about restoring courses with a StudentQuiz activity in Moodle installations >= 3.3.

The Problem

StudentQuiz versions < 2.1 used to store Quiz instances into an orphaned section. This hidden section got the constant id and order number 999. With Moodle >= 3.3 restoring course backups resulted in 990+ empty sections created, leading to unneccessary long course pages and tedious manual clean up for administrators.

Our preliminary solution

We refactored the plugin under the hood to no longer depend on a constant id 999. The section to be used by a StudentQuiz activity to store hidden Quiz instances is now configurable on activity level. Additionally we added a cleanup procedure to remove unwanted sections automatically when restoring course by backups made with prior versions of StudentQuiz.

New configuration options

  • In Activity settings of every StudentQuiz Activity under "Advanced Settings" there is now a new select box to define into which section the hidden Quiz instances are stored.
  • In Site administration > Plugins > Plugins Overview > StudentQuiz settings we added a default option to clean up any unwanted sections. Activate this option whenever you are restoring course backups made with a StudentQuiz version < 2.1.0

Our goal

For obvious reasons, we want to get rid of the necessity to store hidden Quiz instances for StudentQuiz.

Minor Fixes and Improvements

  • Navigation to ranking table and statics is now in the activity gear menu instead of site navigation
  • Updated various language strings
  • Cleared unwanted output from phpUnit test
  • Backup and restore procedures save and restore question approval and selected question behavior.

Don't miss a new moodle-mod_studentquiz release

NewReleases is sending notifications on new releases.