Problem/Motivation
After applying patch from Time element fails validation when an empty value is submitted via API #16 . Although I did go from latest RC to latest dev, so there is a small chance it could be something else.
Date Time validation fails when inside a custom composite from Webform Composite Tools
This does not happen when not using a composite, but prior to the patch, it worked fine inside a composite.
How to reproduce
Here is a source export:
test2:
'#type': custom_composite
'#title': test2
'#element':
test3:
'#type': datetime
'#title': test3
'#date_date_element': datepicker
'#date_date_format': d/m/Y
'#date_time_element': timepicker
'#date_time_format': 'g:i A'
'#date_time_step': '900'
'#autocomplete': 'off'
Result:

Comments
Comment #2
no sssweat commentedComment #3
no sssweat commentedComment #4
no sssweat commentedComment #5
jrockowitz commentedThe attached webform replicates this issue.
Comment #6
jrockowitz commentedThis patch fixes the issue which is related to the custom time format within composites and multiple value elements.
This solution needs some additional test coverage to prevent any additional regressions.
Comment #7
jrockowitz commentedComment #8
no sssweat commentedI have downloaded the latest dev version and applied the patch and the issue still persists.
When I apply the patch this is what it says:
Comment #9
jrockowitz commentedAre you sure that patch is not working? This patch even includes your original example in the test (see the interdiff).
Comment #10
no sssweat commentedTurns out on my live site the webform module is inside the /modules/contrib folder, but not in my local.
So when I put it in the /modules/contrib folder in my local, I accidentally ended up with 2 webform modules and it was still reading the original one in the root /modules folder.
Works perfectly, thank you so much! Sorry to keep you up at night.
Comment #11
no sssweat commentedComment #13
jrockowitz commented