fuzionnz / webform_civicrm_migrate

0 stars 6 forks source link

Skip webforms that had CiviCRM form processing disabled #3

Open herbdool opened 1 year ago

herbdool commented 1 year ago

In addCiviHandler() it will skip a webform if there are no element keys that include civicrm. But I've found some webforms where getWebformCiviCRMData() returns NULL. In each case the CiviCRM processing was turned off.

What worked for me was adding:

    if (empty($webformData)) {
      return;
    }
herbdool commented 1 year ago

Another PR: https://github.com/fuzionnz/webform_civicrm_migrate/pull/6