Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
bug fix for restore process
Browse files Browse the repository at this point in the history
  • Loading branch information
chadmazilly committed Dec 20, 2017
1 parent 2a4be7b commit 7f90e93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions backup/moodle2/restore_quickmail_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ protected function process_block($data) {
if ($restore and isset($data->emaillogs['log'])) {
global $DB;

$current = context_course::instance($this->get_courseid());
$current_context = context_course::instance($this->get_courseid());

$params = array(
'backupid' => $this->get_restoreid(),
'itemname' => 'context',
'newitemid' => $context->id
'newitemid' => $current_context->id
);

$id = $DB->get_record('backup_ids_temp', $params)->itemid;

foreach ($data->emaillogs['log'] as $log) {
$this->process_log($log, $id, $context);
$this->process_log($log, $id, $current_context);
}
}

Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$plugin->version = 2017110700;
$plugin->version = 2017122000;
$plugin->requires = 2013051400;
$plugin->release = "v1.7.4";
$plugin->release = "v1.7.5";
$plugin->maturity = MATURITY_STABLE;
$plugin->component = 'block_quickmail';

0 comments on commit 7f90e93

Please sign in to comment.