-
Notifications
You must be signed in to change notification settings - Fork 192
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: Check for campaign goal before calculating percentage #7596
Fix: Check for campaign goal before calculating percentage #7596
Conversation
Build for QA, see https://github.com/impress-org/givewp/actions/runs/11579967891. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I just left a couple of comments related to minor things. But I'll approve it to advance the things.
tests/Unit/Campaigns/DataTransferObjects/CampaignGoalDataTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed manual QA tests
Resolves GIVE-1428
Description
This PR checks for a campaign goal before calculating a goal progress as a percentage, which might attempt to divide by zero.
Testing Instructions
Pre-review Checklist
@unreleased
tags included in DocBlocks