Skip to content
Snippets Groups Projects
Commit 44b6b40f authored by Owen Bush's avatar Owen Bush
Browse files

Excluded/Included dates should be empty arrays if no values

parent 2d7ad99e
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,7 @@ class EventCreationService { ...@@ -207,6 +207,7 @@ class EventCreationService {
$config['type'] = $user_input['recur_type']; $config['type'] = $user_input['recur_type'];
$config['excluded_dates'] = $config['included_dates'] = [];
if (!empty($user_input['excluded_dates'])) { if (!empty($user_input['excluded_dates'])) {
$config['excluded_dates'] = $this->getDatesFromForm($user_input['excluded_dates']); $config['excluded_dates'] = $this->getDatesFromForm($user_input['excluded_dates']);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment