Problem/Motivation
Error messages when editing an event that already exists and adding or changing include or exclude dates. It does save the event, but throws several errors.
Steps to reproduce
1. Create a new event and set the start and end dates and set a few exclude or include dates and then save the event.
2. Go back and edit the same event and add one or more extra exclude and/or include dates and hit save.
3. You will se a long set of errors about undefined array key consecutive_recurring_date in Drupal\recurring_events\Plugin\Field\FieldType\ConsecutiveRecurringDate::convertFormConfigToArray()
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | recurring_events-undefined_array_key-3309859-8.patch | 1.12 KB | owenbush |
| recur_error.txt | 5.14 KB | weddled |
Issue fork recurring_events-3309859
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
owenbush commentedThank you for raising this issue, I'll try and recreate it and see what is happening.
Comment #3
owenbush commentedI've been unable to recreate this issue, can you provide more information on what settings you were using to cause the errors.
Comment #4
vlad.dancerGetting the same here.
Comment #5
vlad.dancerRelated error:
Steps to reproduce:
1. Install latest module
2. Go to /admin/structure/events/series/settings
2.1 Scroll to "Enabled Recur Field Types" setting
2.2 Untick "Consecutive Event" option.
3. Create event with "Custom/Single Event" Recur Type
4. Edit event and change Dates
Workaround/solution.
Go to /admin/structure/events/series/types/eventseries_type/default/edit/form-display and move "Consecutive Event" field into disabled section.
Comment #7
vlad.dancerI've added one possible code improvement
Comment #8
owenbush commentedThank you for the MR, I made one change to it which I believe should address the issue in all circumstances. Attached is a patch for those who wish to safely include this change with composer.
Comment #9
muriqui commentedTested and confirmed: patch in #8 resolves the error.
Comment #12
owenbush commentedThis has been merged into the latest dev release. Thanks for all involved.