webform_civicrm icon indicating copy to clipboard operation
webform_civicrm copied to clipboard

Set empty value for N/A.

Open puresyntax71 opened this issue 1 year ago • 1 comments

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.

puresyntax71 avatar Jan 23 '24 08:01 puresyntax71

One of the fails is Stripe - re-running tests.

image

KarinG avatar Jan 23 '24 14:01 KarinG