Problem/Motivation
The offcanvas component shows the error "ID field is not in the right format" using UI Patterns+layout builder and entering a custom ID.
Steps to reproduce
- In layout builder, create a section using ui_patterns with the themes Offcanvas component
- Enter a custom ID in the ID field
- Click on 'add section'
- Form does not save, and receive the error 'ID field is not in the right format.'
Proposed resolution
TBD
Issue fork ui_patterns-3494336
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 #2
grimreaperHi,
Thanks for the bug report.
I confirm that I can reproduce and that it is not related to UI Suite Bootstrap.
Comment #3
just_like_good_vibesi will take this
Comment #4
just_like_good_vibeshello,
in fact this is a core bug about treating correctly unicode in pcre patterns.
the bad code is in
FormElementBase, functionvalidatePattern.Our regex supports unicode, but drupal form and "#pattern" processing is not enough advanced to allow it.
i will submit a patch
Comment #5
pdureau commentedMaybe we can go easy with unicode PCRE patterns.
Ou regex will be less "good" but it may still be good enough and become compatible with Drupal's validatePattern function ?
Comment #6
just_like_good_vibesdon't worry, i already fixed
Comment #8
just_like_good_vibesComment #10
pdureau commentedComment #11
grimreaperComment #12
grimreaperHi,
Thanks I confirm the bug fix.
Comment #13
pdureau commentedComment #14
g4mbini