Closed (fixed)
Project:
Webform
Version:
6.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 May 2021 at 13:12 UTC
Updated:
31 May 2021 at 16:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
paulocsComment #3
guilhermevp commentedPatch works as intended.
Comment #4
jrockowitz commentedCan the patch use
if (floatval(\Drupal::VERSION) >= 9) {so that we can commit it? When Drupal 9.x is only supported I can removed the if/then statement.Comment #5
paulocsHey @jrockowitz,
I didn't add it before because
WebformDefaultExceptionHtmlSubscriber.phpis used only if in Drupal 9.WebformServiceProvider.phpalready does this verification.See:
Should I add #4 in the patch anyway?
Cheers, Paulo.
Comment #6
jrockowitz commentedOkay, I would have to investigate this is a little. The 6.x version needs to work in Drupal 8/9
Comment #7
paulocsOkay.
It works with both I just mean that WebformExceptionHtmlSubscriber is replaced with WebformDefaultExceptionHtmlSubscriber when the user is using D9 so maybe the verification #4 would be duplicated as WebformDefaultExceptionHtmlSubscriber is only used if
if (floatval(\Drupal::VERSION) >= 9).WebformServiceProvidersubscribe the service based on the Drupal version.Comment #8
jrockowitz commentedGotcha! I think this is RTBC
Comment #9
jrockowitz commentedComment #11
jrockowitz commented