Problem/Motivation
If the Drupal 7 site has conditions of type "contains", these are incorrectly migrated and end up on errors when editing webform fields.
Steps to reproduce
Migrate a webform that uses the condition "contains" on a field. Then try to edit such field.
Proposed resolution
Webform in Drupal 8 has a pattern condition but such condition expects a regular expression. I am using the equals condition which serves my case but there may be cases where the condition value should be converted into a regular expression.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-3170195-2-3.txt | 1.45 KB | huzooka |
| #3 | webform_migrate-support_contains-3170195-3.patch | 1.57 KB | huzooka |
| #2 | webform_migrate-support_contains-3170195-2.patch | 960 bytes | juampynr |
Comments
Comment #2
juampynr commentedHere is a patch that solves the issue.
Comment #3
huzookaImproved the 'contains' condition migration.
Comment #4
wim leersI was gonna say
$depedentshould be$dependent, but it is pre-existing so … 🤷♂️Comment #6
andriyun commentedCommited
Thx @juampynr, @huzooka, @Wim Leers