webform_civicrm icon indicating copy to clipboard operation
webform_civicrm copied to clipboard

Call to undefined function wf_crm_field_options() in webform_civicrm_webform_submission_render_alter()

Open mattwire opened this issue 2 years ago • 2 comments

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

mattwire avatar Aug 29 '22 11:08 mattwire

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?

KarinG avatar Aug 30 '22 14:08 KarinG

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 ->

image

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

KarinG avatar Aug 30 '22 14:08 KarinG