Fix WorkflowState->label() in workflow_state_allowed_values()

Created on 3 March 2025, about 1 month ago

Problem/Motivation

When displaying the Workflow History view, the from, to states are not properly rendered.
When the formatter says to display the 'Value' the state should not display the 'key', nor the $transition->label().

Steps to reproduce

Proposed resolution

- better implementation of workflow_state_allowed_values()
- introduce WorkflowState -> __toString(), which allows to return [key=>object] in OptionsInterface

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.8

Component

User interface

Created by

🇳🇱Netherlands johnv

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

Comments & Activities

Production build 0.71.5 2024