Avoid to render TermMatcher metadata token as plain text if field is empty

Created on 14 May 2024, about 1 month ago
Updated 16 May 2024, about 1 month ago

Problem/motivation

If I add a non-replaceable token in the TermMatcher metadata, the token is used as plain text in the autocomplete widget.

Steps to reproduce

  1. Go to "manage matchers"
  2. Create a taxonomy term matcher
  3. On metadata add a field token that is only present in some taxonomies
  4. Use linkit widget for add a taxonomy term that doesn't have the token replacement

Proposed resolution

Add "clear => TRUE" when the replace method is called

In the next comment the proposed patch

🐛 Bug report
Status

Needs review

Version

7.0

Component

Code

Created by

🇮🇹Italy robertom

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

Comments & Activities

Production build 0.69.0 2024