Browse Source

Fixes #349 - Fixed calendarevent for imports

MOODLE_35_STABLE
maksudr 6 years ago
committed by Dan Marsden
parent
commit
2a91d6d7f5
  1. 6
      classes/import/sessions.php

6
classes/import/sessions.php

@ -340,6 +340,12 @@ class sessions {
$session->preventsharediptime = $this->get_column_data($row, $mapping['preventsharediptime']); $session->preventsharediptime = $this->get_column_data($row, $mapping['preventsharediptime']);
} }
if ($mapping['calendarevent'] == -1) {
$session->calendarevent = $pluginconfig->calendarevent_default;
} else {
$session->calendarevent = $this->get_column_data($row, $mapping['calendarevent']);
}
if ($mapping['includeqrcode'] == -1) { if ($mapping['includeqrcode'] == -1) {
$session->includeqrcode = $pluginconfig->includeqrcode_default; $session->includeqrcode = $pluginconfig->includeqrcode_default;
} else { } else {

Loading…
Cancel
Save