If field is not found, an error is thrown on views with relationships

Created on 1 November 2024, 6 months ago

Problem/Motivation

If the field type is not found in a view that has relationships, then an error is thrown instead of the default Not found response.

In Table.php, this condition never gets triggered:

// Value not found - mark the field and exit.
else {
return 'Not found: ' . $field_name . ' > ' . $raw_value;
}

Steps to reproduce

  • Create a media view
  • Add file size field to the view
  • Add column aggregation on the file size column.
  • An error is thrown.

Proposed resolution

Ideally, this bigger issue should be fixed as the file size field exists on the file table and the actual rendered value has the field id - field_file_size_value instead of field_file_size (the name of the field).

But for the time being, at the very least, the aggregated value should be rendered without an error as an unknown field type.

Remaining tasks

Figure out a long-term solution. Maybe break out a new issue for that?

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada bibliophileaxe

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