Problem/Motivation
The confirmation email doesn't set a default format. This causes the form to fail to save until all formats have been given a default.
However, the override fields should not appear at all until the override checkbox is ticked.
Steps to reproduce
Proposed resolution
Get the default format for the site and any format drop-down that don't have a value set.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork conreg-3592461
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
tribekk commentedOpened MR !44.
The member type confirmation override body now falls back to the default text format when an existing member type has no stored format. The subject and body fields are hidden until override is selected.
Added a form build test for the fallback format and visibility states.
Checked locally:
- php -l src/Form/Admin/MemberTypes.php
- php -l tests/src/Kernel/FormBuildTest.php
- composer validate --no-check-publish
- git diff --check
Comment #5
lostcarpark commentedTested and it's working great.
We'll need to revisit later as
filter_default_format()will be deprecated in 11.4 and removed in 13.Moving to RTBC.
Comment #7
lostcarpark commentedThanks for working on this @tribekk.
Merged and moving to Fixed.