From 29b5f54037c55281596a4ff3f9b6c54ccc492217 Mon Sep 17 00:00:00 2001
From: owenbush <owenbush@2765259.no-reply.drupal.org>
Date: Tue, 2 Jun 2020 20:11:16 -0600
Subject: [PATCH] Issue #3142276 by owenbush, the_glitch: edit Event Series
 form not saving

---
 src/EventCreationService.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/EventCreationService.php b/src/EventCreationService.php
index 5ac30707..5d055215 100644
--- a/src/EventCreationService.php
+++ b/src/EventCreationService.php
@@ -220,10 +220,12 @@ class EventCreationService {
 
     $config['type'] = $user_input['recur_type'];
 
-    $config['excluded_dates'] = $config['included_dates'] = [];
+    $config['excluded_dates'] = [];
     if (!empty($user_input['excluded_dates'])) {
       $config['excluded_dates'] = $this->getDatesFromForm($user_input['excluded_dates']);
     }
+
+    $config['included_dates'] = [];
     if (!empty($user_input['included_dates'])) {
       $config['included_dates'] = $this->getDatesFromForm($user_input['included_dates']);
     }
-- 
GitLab