webform_civicrm
webform_civicrm copied to clipboard
Call to undefined function wf_crm_field_options() in webform_civicrm_webform_submission_render_alter()
Overview
See https://www.drupal.org/project/webform_civicrm/issues/3177210
This fix is required when "existing contact" is not selected for first contact.
Before
PHP error undefined function.
After
Submission renders.
Technical Details
Comments
Thank you. We have many forms in use where Existing Contact is not selected for the first contact but I don't recall seeing a PHP error. Can you give me exact steps to reproduce?
According to the issue description:
2.0 Detailed steps to reproduce (embed screenshots) Create a simple Drupal webform without any CiviCRM components. Leave "Enable CiviCRM Processing" unchecked on the Webform CiviCRM tab. Create a new submission. View the submission at /node/[nid]/submission/[sid]
I just did this on a live site ->

Not getting any error (also not seeing a notice) in the dblog.