Prevent array to string conversion if field_mime_type is empty

Created on 19 September 2023, over 1 year ago

Problem/Motivation

For unknown reasons, the field_mime_type has no value since Drupal 10.1.2(?).

This results in a array to string conversion in our media document templates.

Steps to reproduce

Proposed resolution

Add empty checks for mime_type.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024