Closed (fixed)
Project:
Webform
Version:
8.x-5.16
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Jul 2020 at 14:00 UTC
Updated:
20 Aug 2020 at 11:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrockowitz commentedPlease post a simple example webform which can be used to trigger this issue.
Comment #3
rakesh.regarHi @jrockowitz
please find attachment of webform yml export
Comment #4
jrockowitz commentedThis issue is related to #1149078: States API doesn't work with multiple select fields. Still, there might be a work-around to get server side conditional logic working as expected.
Comment #5
jrockowitz commentedThe attached webform replicates the issue using webform element #states.
Comment #6
jrockowitz commentedComment #7
jrockowitz commentedPlease ignore the last patch.
Comment #8
jrockowitz commentedThe attached patch attempts to fix this issue by refactoring the code to better support multiple value elements.
Comment #9
jrockowitz commentedAn issue with the Webform Group module is triggering the 4 broken tests. Otherwise, the patch can be manually reviewed.
Comment #10
Ruchi Joshi commentedIssue is reproducible. And post applying patch its get resolved. No warning appears on selecting multi-select type option. Screenshots attached. +1 for RTBC.
Comment #11
jrockowitz commentedSame patch with the unused $element parameter for \Drupal\webform\WebformSubmissionConditionsValidator::checkConditionTrigger removed.
Comment #14
jrockowitz commentedComment #15
Ruchi Joshi commented@jrockowitz Tested patch- "3162192-11.patch" and its working fine. +1 for RTBC