-
Notifications
You must be signed in to change notification settings - Fork 2
Fix for #124: Date field in composite #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MattOz-CDS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
sgroi-l
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. Thanks Ekes
|
Thanks for this @ekes ! And thanks for approving @sgroi-l @MattOz-CDS . I'm not totally sure how to test this. By 'composite' do we mean using this project? https://www.drupal.org/project/webform_composite I'd like to be able to reproduce the error and see it go away with this change. |
|
@finnlewis - that's correct. that module allows you to create a resuable composite like an About you composite, which you can then drop in to any of your forms. Create them here: admin/structure/webform/config/composite It then gives the validation error @ekes mentioned in #124 I'm testing this too now. |
msayoung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me
finnlewis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see!
Confirmed that a LocalGov Forms Date field in a Webform Composite thing does not validate the date when submitting the form.
Checking out this branch and the LocalGov Forms Date field does validate.
:)
|
I'd say that's a good number of approvals! Thanks folks :) |
|
Discussing at Merge Tuesday. In the move to drupal.org, we've tagged a new release on Drupal.org for https://www.drupal.org/project/localgov_forms/releases/1.1.0-beta11 So:
We want to avoid any further merges / releases on github if we can. |
|
Merge request on drupal.org https://git.drupalcode.org/project/localgov_forms/-/merge_requests/2 |
|
This has been merged on druapl.org https://git.drupalcode.org/project/localgov_forms/-/merge_requests/2 Closing here. |
The suggestion from #124 overriding the preValidateDate to make workaround from parent to put datetime object into the form state input.