Inherited fields are not available for pathauto on event instance creation

Created on 28 December 2023, about 1 year ago
Updated 19 January 2024, about 1 year ago

Problem/Motivation

When using this module together with Pathauto and the pattern for event instances includes any of the fields inherited from the series entity, those values are not available when creating the instance.

It happens because the instance is saved before the default inheritances are configured. Pathauto tries to get the values, but FieldInheritanceFactory is unable to find them.

Steps to reproduce

  1. Install Recurring Events and Pathauto modules in a fresh install
  2. Configure a Pathauto pattern for events that contains instance fields and inherited fields, like event/[eventinstance:date]/[eventinstance:title]
  3. Create a eventseries with one or more instances
  4. Visit the instances and confirm that alias is event/december-28th-2023-0100pm instead of event/december-28th-2023-0100pm/serie-title
  5. Open the instance edit form and save it. Alias is updated and the expected alias event/december-28th-2023-0100pm/serie-title is created

Proposed resolution

Ensure that Field Inheritance configuration is saved before the instance entity is saved to the database.

Remaining tasks

Implement patch

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Recurring Events (Main module)

Created by

πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024