Property values are converted to Markup

Created on 5 March 2025, about 1 month ago

Problem/Motivation

In the template for an SDC that I made, a property which should be a string was instead a Markup object. This broke the template because the property is used in a function call where it must be a string.

The problem is the call to Markup::create() in StringPropType::preprocess(). If I remove that, the problem goes away. $definition['contentMediaType'] is not set. If it was set to text/plain, that would solve it. I don't know how it should be set.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

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

Comments & Activities

Production build 0.71.5 2024