webform_civicrm
webform_civicrm copied to clipboard
Set empty value for N/A.
Overview
When "Address" is enabled for a contact with Country and State/Province element enabled, if user selects a country that has no state, this error is thrown upon form submission:
Drupal\Core\Entity\EntityStorageException: state_province_id is not a valid integer in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of /app/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
I think CiviCRM is expecting an integer although got "-" instead.
Before
Throws error when selecting "N/A" as the option for "State/Province" element.
After
No more error.
One of the fails is Stripe - re-running tests.