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

refactor: validate array prior to adding tags on v2 forms #8

Merged
merged 3 commits into from
May 14, 2024

Conversation

JoshuaHungDinh
Copy link
Contributor

@JoshuaHungDinh JoshuaHungDinh commented May 13, 2024

Resolves GIVE-776

Description

This PR addresses a fatal error thrown on v2 forms when users customize per form settings and do not include tags. This is done by casting$tags as an array to handle empty string values from being imploded.

The error is thrown due to an array method implode being called on an empty string value.

Affects

Visuals

Screen.Recording.2024-05-13.at.10.30.34.AM.mov

Testing Instructions

  • Create a v2 form with ActiveCampaign
  • Do NOT include tags in the settings
  • Process a donation and verify no errors are thrown

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@JoshuaHungDinh JoshuaHungDinh marked this pull request as ready for review May 13, 2024 18:02
Copy link

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed QA

@jonwaldstein jonwaldstein merged commit 4003016 into develop May 14, 2024
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.

3 participants