From d1838d0b05a17eeb4d0b1510ead8b1915345b5af Mon Sep 17 00:00:00 2001 From: maksudr <12033826+maksudr@users.noreply.github.com> Date: Thu, 28 Mar 2019 03:44:45 +0000 Subject: [PATCH] Fixes #349 - Fixed calendarevent for imports --- classes/import/sessions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/import/sessions.php b/classes/import/sessions.php index f336a24..6a148fd 100644 --- a/classes/import/sessions.php +++ b/classes/import/sessions.php @@ -340,6 +340,12 @@ class sessions { $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) { $session->includeqrcode = $pluginconfig->includeqrcode_default; } else {