Need to access protected property "label" in CshsOption class

Created on 25 March 2025, 18 days ago

Problem/Motivation

Users currently have the ability to add any information to the taxonomy, including HTML tags. This presents a challenge as we need to access the label and apply html_entity_decode to properly modify the label information.

Steps to Reproduce

  1. Create and configure your CSHS module with a taxonomy.
  2. Add multiple items to the taxonomy.
  3. Create a record with the label "This is an example ™".
  4. Access a page where your form will be displayed, featuring a select dropdown containing your created items.
  5. Observe that the label displays as ™ and note that it cannot be modified through any available hooks.

Proposed Resolution

We could make the label a public attribute, or alternatively, modify the label in the constructor method so that it can be overridden using html_entity_decode($label).

Remaining Tasks

User Interface Changes

API Changes

Data Model Changes

Feature request
Status

Downport

Version

4.0

Component

Code

Created by

🇧🇷Brazil andrelzgava

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024