Disabling the webform_civicrm handler doesn't prevent it from being called

Created on 18 July 2023, 12 months ago
Updated 23 July 2023, 11 months ago

1.0 Problem/Motivation

Disabling the webform_civicrm handler doesn't prevent it from being called. In webform_civicrm.module, webform_civicrm_webform_submission_load() there are still hooks that call webform_civicrm functionality even if the handler is disabled. Worse, it can no longer find civicrm_api3().

2.0 Detailed steps to reproduce (embed screenshots)

Check the webform's handlers in webform_civicrm_webform_submission_load(). There may be others, such as webform_civicrm_element_info_alter() and webform_civicrm_webform_autocomplete_options_alter().

3.0 Proposed resolution

Check if the handler is active.

🐛 Bug report
Status

Needs work

Version

6.0

Component

Code

Created by

🇨🇦Canada nubeli

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024