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 and Update! #14

Merged
merged 30 commits into from
Apr 2, 2024
Merged

Fix and Update! #14

merged 30 commits into from
Apr 2, 2024

Conversation

Barny-Thorpe
Copy link
Contributor

@Barny-Thorpe Barny-Thorpe commented Feb 29, 2024

Fix and update the gift aid plugin

fixes

  • Main issue was the $type property in the field class - this was changed resulting in all instances on websites breaking:
  • Above changed back to original value and warning comment issued above to prevent future mishaps.

Updates

  • New Select field added so the user can choose which field they want the gift aid value to be selected from.
  • Options are populated by fields in the current form - with the value being the id of the chosen form - this defaults to the ginput_amount class that was being used before in order to not break old sites.
  • Js updated to check the input or itself/ancestors for the class passed through in the custom setting.

@codepuncher
Copy link
Member

Update js on the gift aid plugin

  • Update JS to use the ginput_total field instead as that is automatically update everytime the donation amount is changed.

what if there is no total field? very common

@Barny-Thorpe
Copy link
Contributor Author

Update js on the gift aid plugin

  • Update JS to use the ginput_total field instead as that is automatically update everytime the donation amount is changed.

what if there is no total field? very common

Snooping

@Barny-Thorpe Barny-Thorpe changed the title Fix JS Issues Fix and Update! Mar 20, 2024
@Barny-Thorpe Barny-Thorpe marked this pull request as ready for review March 21, 2024 15:14
src/GfGiftAidField.php Outdated Show resolved Hide resolved
Copy link
Member

@codepuncher codepuncher left a comment

Choose a reason for hiding this comment

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

Looks like field visibility field is missing. Please add it.

src/GiftAidField.php Outdated Show resolved Hide resolved
src/GiftAidField.php Outdated Show resolved Hide resolved
src/GiftAidField.php Outdated Show resolved Hide resolved
src/GfGiftAidField.php Outdated Show resolved Hide resolved
src/GfGiftAidField.php Outdated Show resolved Hide resolved
src/GiftAidField.php Outdated Show resolved Hide resolved
@codepuncher
Copy link
Member

do you know what version to tag this as?

@Barny-Thorpe
Copy link
Contributor Author

do you know what version to tag this as?

I would assume v0.3.0 as its not breaking changes but it does include minor changes

@codepuncher
Copy link
Member

do you know what version to tag this as?

I would assume v0.3.0 as its not breaking changes but it does include minor changes

I would classify this as as a rewrite AND a breaking change.
it is now 1.0.0
you have changed $type to fix a bug introduced in a previous version but this also breaks sites using that old value to type

@Barny-Thorpe Barny-Thorpe merged commit b8f7dfe into main Apr 2, 2024
2 checks passed
@Barny-Thorpe Barny-Thorpe deleted the Fix-Bugs branch April 2, 2024 13:07
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.

None yet

2 participants