- Issue created by @jensschuppe
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:03pm 20 April 2023 - Status changed to Fixed
over 1 year ago 8:52am 23 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.
1.0 Problem/Motivation
In some cases viewing results of a CiviCRM webform leads to this error due to CiviCRM not being initialized yet.
2.0 Detailed steps to reproduce (embed screenshots)
Create a Webform with CivICRM processing enabled, submit it and try to view results. I'm not sure about the specific scenario and don't have the time to investigate as the Webform this appears on is quite large.
3.0 Proposed resolution
In \_fillCiviCRMData()
there should be a \Drupal::service('civicrm')->initialize();
, which makes sure we have our global functions available. Re-initializing does not hurt as it early-returns in that case.
Fixed
6.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.