Skip to content

Commit

Permalink
Merge pull request #1 from LiFaytheGoblin/ndunand#168-Fix-lost-groups…
Browse files Browse the repository at this point in the history
…-to-choose-while-restore

ndunand#168 fix lost groups to choose while restore
  • Loading branch information
LiFaytheGoblin committed Aug 2, 2022
2 parents 3e352dc + 213a2ef commit df97bdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backup/moodle2/restore_choicegroup_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function process_choicegroup_option($data) {
$data->timemodified = $this->apply_date_offset($data->timemodified);

// Check if the groupid exists in this course.
$group = $DB->get_recordset_sql('SELECT g.id FROM {groups} g
$group = $DB->record_exists_sql('SELECT g.id FROM {groups} g
WHERE g.courseid = ? and g.id = ?', array($this->get_courseid(), $data->groupid));
if (!$group) {
// It does not exist in the course already, so try to map the groupid.
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

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

$plugin->version = 2021083100;
$plugin->version = 2022062400;
$plugin->requires = 2018051700; // Moodle 3.5
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '1.33 for Moodle 3.5-3.11 (Build: 2021083100)';
Expand Down

0 comments on commit df97bdc

Please sign in to comment.