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

fix: handle both string JSON and array inputs for ListField #138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Toni-hr98
Copy link

Array to String Conversion Error in ListField.php

When submitting a form with an array value for the Klaviyo List field, the following error occurs

ErrorException: Array to string conversion in ListField.php:50

Steps to Reproduce

  1. Create a Klaviyo List field in Craft
  2. Submit form data in a global/entry
  3. Error occurs in normalizeValue() when trying to cast array to string

I've submitted a PR that handles both array and string inputs

@johnnynotsolucky
Copy link
Collaborator

Thanks @Toni-hr98, we're going to take a look at this soon.

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