Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When workflow creates the action buttons, the buttons' values get assigned as they are in the db.
The buttons' values (aka the Transitions' Labels) should be passed through html_entity_decode so Drupal doesn't get lost searching for a button, like Save & Review
vs Save & Review
.
Without html_entity_decode, Drupal can't find the clicked button and ends up assuming that another button was clicked.
Comment | File | Size | Author |
---|---|---|---|
#2 | workflow-action_button_value-2578493-2.patch | 643 bytes | natanmoraes |
Comments
Comment #2
natanmoraesComment #3
johnvRegrouping issues for action buttons.
Comment #6
johnvThanks for the tip.
This is not only for action buttons but for radio's and select list as well.
In D8, less changing was needed, since Twig does some great things by itself.
Comment #7
johnvComment #9
johnvThis was not OK for the D8-version. Now it is.