Show Current State has not meta section to appear in

Created on 1 December 2023, 7 months ago
Updated 14 December 2023, 7 months ago

Problem/Motivation

Thanks for this module, it's working great.

I don't understand this feature that allows you to display the current workflow state. If you don't already have the meta section, how can you add the workflow state? I've looked at the form display settings and I don't see any way to add this.

Steps to reproduce

1. Enable the widget
2. Configure "Show current state?"
3. Edit content with this widget.
4. Expected: The current state will show in the meta section
5. Actual: No current state appears.

Proposed resolution

I think it should just add the information if you configure it. It can create the "meta" section if required? Although it seems like there is some assumption that this meta section should exist already...

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia sime Canberra

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

Comments & Activities

  • Issue created by @sime
  • πŸ‡―πŸ‡΅Japan ultrabob Japan

    I'm guessing that this meta section of the form may have disappeared when we introduced the feature to show buttons at the top and bottom of the form. I think we should probably loop through $form['actions'], $form['actions_top']. and $form['actions_bottom'] and add a corresponding meta section right before each if they exist and show current state is checked.

Production build 0.69.0 2024