Problem/Motivation
Currently the Administrative comment section of the views is a textarea field (allowing multiline values), however the schema defines it as a label, which has a Regex constraint that control characters such as new lines are not allowed.
Steps to reproduce
Create a view and edit the Administrative comment with a piece of multiline text.
Then inspect the view using the config inspector UI, under the Validation error section, you should see the following:
Labels are not allowed to span multiple lines or contain control characters.
Proposed resolution
Switch the config schema type from label to text.
Remaining tasks
Provide MR.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | after.png | 31.56 KB | angel_devoeted |
| #5 | before.png | 37.58 KB | angel_devoeted |
Issue fork drupal-3570287
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:
- 3570287-use-appropriate-config
changes, plain diff MR !14547
Comments
Comment #3
codebymikey commentedComment #4
codebymikey commentedComment #5
angel_devoeted commentedReviewed and tested.
Confirmed the schema validation error for multiline display_comment and verified it is resolved with this change.
Comment #6
codebymikey commentedThanks @angel_devoeted, marking as RTBC in that case.
Comment #7
longwaveBackporting to 10.6.x as an eligible bug fix.
Committed and pushed f2f5a52332d to main and 199e2bb684f to 11.x and c7129627d0e to 11.3.x and aa38b40afde to 10.6.x. Thanks!