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
Issue fork views_aggregator-3485063
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments