Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set empty value for N/A. #939

Open
wants to merge 4 commits into
base: 6.x
Choose a base branch
from

Conversation

puresyntax71
Copy link
Contributor

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.

@KarinG
Copy link
Collaborator

KarinG commented Jan 23, 2024

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

image

* upstream/6.x:
  Ensure new events are loaded as default on the event field
  Update number of contacts to 50
  remove Drupal 7.x test mode workaround
  Skip Stripe tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants