Custom button text for comment save button doesn't show

Created on 12 February 2025, 28 days ago

Problem/Motivation

The custom button text that we've added for the 'save comment' form, is not shown on the rendered page. It does work correctly for the 'save node' form. Looking into this bug, I see the 'comment' configuration becomes:

buttons_config.comment.settings:

form_ids:
  comment_discussion_edit:
    form_type: '0'
    form_id: comment_discussion
    enabled: '1'
    custom_text: 'Custom text!'

For nodes it becomes:

form_ids:
  node_article_save:
    form_type: '1'
    form_id: node_article
    enabled: '1'
    custom_text: Custom text!'

As you can see, for the comment it names the form '_edit', and for the node it names it '_save'. Also 'form_type' is 0 for the comment form (which makes button_config.module treat it as an edit form), and 1 for the node.
This is strange, the 'edit' option isn't even available as an option in the dropdown on the 'Change Form Button Text in Comment Types Add to Default shortcuts' page.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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