Problem/Motivation
You can't choose to show / hide the discard and revert buttons as the config form is broken.
Steps to reproduce
- Go to settings: /admin/config/gin_lb/settings
- Toggle setting for 'Hide "Discard changes" and "Revert to defaults" buttons'
- Save form
The setting wont save and the setting also doesn't change anything with regards to the buttons.
Proposed resolution
Fix the typos in the form and save the setting.
Remaining tasks
The form element key is missing an 's' and needs to look like this
$form['hide_discard_revert_buttons'] ...
...
'#default_value' => $config->get('hide_discard_revert_buttons'),
And it needs this in the submit:
->set('hide_discard_revert_buttons', $form_state->getValue('hide_discard_revert_buttons'))
Issue fork gin_lb-3361183
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 #3
very_random_man CreditAttribution: very_random_man as a volunteer commentedComment #5
Christian.wiedemann CreditAttribution: Christian.wiedemann commentedThanks!
Comment #6
GrimreaperTested ok on the last dev version. Thanks!
Comment #7
ChrisSnyderThe MR on #3370248: hide_revert_button and hide_discard_button config options not working and don't have a UI. should actually fix this.