Skip to content

UFM filter parameters are null in UFM Expressions #20744

@glombek

Description

@glombek

Which Umbraco version are you using?

17.0.0-rc1

Bug summary

Filters such as truncate and fallback do not work with UFM Expressions, only UFM Components. After a bit of debugging this is because the parameters are coming through as null in Expressions.

Specifics

Parameters are undefined for custom filters too.

Steps to reproduce

Create block labels like the following:

Rich Text: ${ content | stripHtml | truncate:30 | fallback:[Empty] }
Rich Text: {umbValue: content | stripHtml | truncate:30 | fallback:[Empty] }

Expected result / actual result

Rich Text: ${ content | stripHtml | truncate:30 | fallback:[Empty] }
If content has a value, it appends a ... e.g. Rich Text: Here's some bold, italic rich text!…
It should only do this if it's truncating the string.

If empty, the fallback does not kick in:
Rich Text:

Rich Text: {umbValue: content | stripHtml | truncate:30 | fallback:[Empty] } works as expected.


This item has been added to our backlog AB#61957

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions