Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291711

"Link label to the referenced entity" changed behavior from Drupal 10.1 to 10.2

$
0
0

Problem/Motivation

I had this issue https://www.drupal.org/project/workflow/issues/3415585.

A view containing a contrib workflow (https://www.drupal.org/project/workflow) "From state"/"To state" item worked in Drupal 10.1.x but broke in Drupal 10.2.x because of changed behaviour in views. Somehow those two elements had the option "Link label to the referenced entity" switched on, which should invoke the canonical view of them, but the elements never had a canonical view to start with. In Drupal 10.1.x this gets ignored, in Drupal 10.2.x it actually breaks the view.

Solution was to switch the option off to make it work. But more people will probably hit the problem, and it would be the nice if the option "Link label to the referenced entity" is not shown when the element in question does not have a canonical view (which should also automatically switch the option to off).

Steps to reproduce

Proposed resolution

#4. We could at least silently catch the exception in Views to avoid breaking things entirely.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 291711

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>