Views fields are broken

Created on 16 November 2020, over 4 years ago
Updated 22 March 2023, about 2 years ago

Problem/Motivation

The views fields provided by the module are not working since Drupal 9 readiness was committed.
1. Field options form cannot open because of missing method $this->getEntityDisplayRepository()
2. After fixing problem 1, the actual modal will throw an exception because of the problem described here: Destination parameter is not set which apparently doesn't redirect to a NULL url, it just crashes. However, that patch does not apply anymore, and it alters the Url in a later step of the rendering process rather than when creating the Url object.

Steps to reproduce

Add a Modal Edit link on a view, see that the field options form is broken.

Proposed resolution

The attached patch fixes both problems and restores functionality of view fields.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇷🇴Romania alex.stanciu

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024