file_get_file_references assumes computed fields have storage

Created on 19 September 2023, over 1 year ago

Problem/Motivation

Function file_get_file_references assumes that all fields have a storage definition. But that's not true for some computed fields.

The call to ->getType here can happen on a NULL variable.

Steps to reproduce

Proposed resolution

Add a check if the field definition exists before calling ->getType.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

10.1

Component
File module 

Last updated 11 days ago

Created by

🇸🇮Slovenia alecsmrekar

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

Comments & Activities

Production build 0.71.5 2024