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.
Comments
Comment #2
jensschuppe commentedComment #3
jensschuppe commentedComment #4
jensschuppe commentedComment #5
jitendrapurohit commentedPR is merged.