Running `drush webform:repair` duplicates a line in webform.settings.yml

Created on 5 April 2024, 3 months ago
Updated 22 April 2024, 2 months ago

Problem/Motivation

Every time I run drush webform:repair; drush config:export, it duplicates the line

- webform_submission_print_download_action

in the webform.settings.yml file.

Steps to reproduce

Before:

...
  confirmation_back_classes: |
    button
  default_share: false
  default_share_node: false
  default_share_theme_name: ''
  webform_bulk_form: true
  webform_bulk_form_actions:
    - webform_open_action
    - webform_close_action
    - webform_delete_action
  webform_submission_bulk_form: true
  webform_submission_bulk_form_actions:
    - webform_submission_make_sticky_action
    - webform_submission_make_unsticky_action
    - webform_submission_make_lock_action
    - webform_submission_make_unlock_action
    - webform_submission_delete_action
    - webform_submission_print_download_action
  dialog: false
...

After:

...
  confirmation_back_classes: |
    button
  default_share: false
  default_share_node: false
  default_share_theme_name: ''
  webform_bulk_form: true
  webform_bulk_form_actions:
    - webform_open_action
    - webform_close_action
    - webform_delete_action
  webform_submission_bulk_form: true
  webform_submission_bulk_form_actions:
    - webform_submission_make_sticky_action
    - webform_submission_make_unsticky_action
    - webform_submission_make_lock_action
    - webform_submission_make_unlock_action
    - webform_submission_delete_action
    - webform_submission_print_download_action
    - webform_submission_print_download_action    #THIS LINE ADDED
  dialog: false
...

If I run it again, then it will have 3 of that line, etc.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

6.2

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.69.0 2024