Problem/Motivation
Currently there is no way to enable creating revisions by default when creating/editing Event Instances and Series.
Steps to reproduce
Go to /admin/structure/events/series/types/eventseries_type/default/edit or /admin/structure/events/series/types/eventseries_type/default/edit and see there is no way to enable "Create new revision".
Proposed resolution
Add new_revision to schema and eventseries/eventinstance type forms
User interface changes
API changes
Data model changes
Config schemas add "new_revision" boolean.
Issue fork entity_reference_revisions-3532699
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:
- 3532699-revision
compare
1 hidden branch
Issue fork recurring_events-3532699
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:
- 3532699-revision-3.x
changes, plain diff MR !200
- 3532699-revision
changes, plain diff MR !160
Comments
Comment #3
kducharm commentedComment #5
kducharm commentedComment #6
dmundraThank you @kducharm
Comment #7
pfrenssenI had a quick look at the code but didn't try it out. This looks like a great addition, thanks for starting it! I have a few thoughts:
nodemodule does it and the approach looks the same.Comment #8
muriqui commentedComment #10
muriqui commentedCreated a new MR against 3.x as requested, and addressed all of pfrenssen's review comments.
Comment #11
eric.napier commentedTested in an integration environment with Recurring Events enabled. Fix works as expected. As a bonus, PHPUnit tests were also added for test coverage of Recurring Event Revisions. Code reviewed for standards / best practice.
Comment #14
muriqui commented