Skip to content

Commit

Permalink
Merge branch 'MDL-80210' of https://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 28, 2023
2 parents 929edc4 + e7ab65f commit ca7e0c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions mod/quiz/db/upgrade.php
Expand Up @@ -67,5 +67,15 @@ function xmldb_quiz_upgrade($oldversion) {
// Automatically generated Moodle v4.3.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2023112300) {

// Set the value for all existing rows to match the previous behaviour,
// but only where users have not already set another value.
$DB->set_field('quiz', 'reviewmaxmarks', 0x11110, ['reviewmaxmarks' => 0]);

// Quiz savepoint reached.
upgrade_mod_savepoint(true, 2023112300, 'quiz');
}

return true;
}
2 changes: 1 addition & 1 deletion mod/quiz/version.php
Expand Up @@ -24,6 +24,6 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2023100900;
$plugin->version = 2023112300;
$plugin->requires = 2023100400;
$plugin->component = 'mod_quiz';

0 comments on commit ca7e0c2

Please sign in to comment.