- Issue created by @ovquiaf
- Merge request !10Issue #3506184: Added valdiation for Custom button text for comments. → (Open) created by anish.ir
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.
Active
1.0
Code