Problem/Motivation
actions() creates the value of $create_button_text in all cases, but only uses it if
if ($this->entity->isNew()) {
Steps to reproduce
Proposed resolution
Move it all into the if() block.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork flag-3567460
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sujal kshatri commentedHey,
I’ve moved the creation of
$create_button_textinside theif ($this->entity->isNew())block in FlaggingForm::actions(), as requested.If any further changes are needed, please let me know
Comment #5
ivnishStraight forward
Comment #7
ivnish