The theme hook on entity_add_list override other entity types theme

Created on 12 November 2023, 8 months ago
Updated 29 January 2024, 5 months ago

Problem/Motivation

The theme preprocess hook for entity_add_list on this module is too generic and applies to all entities.
By example, the add media page links are all rewritten with assignment entity type which leads to faulty link (404).

Steps to reproduce

Exemple project: TG. Go to Media section of the content administration. Click on add Media, then try to select one media bundle.

Proposed resolution

I was not able to identify the reason behind this preprocess, as on TG there is no 'Add assignment' page. So first resolution would be to check if this hook is really necessary. If not remove it, else we should then check if the provided bundles are matching the entity type assignment. See MR.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡«πŸ‡·France GuillaumePacilly

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024