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

NFC Minor code cleanup to contribution pages #19468

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

mattwire
Copy link
Contributor

Overview

Just some minor cleanups.

Before

After

Technical Details

Comments

@civibot
Copy link

civibot bot commented Jan 30, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor

Civi\Financialacls\BuildAmountHookTest::testBuildAmount
Failed asserting that actual size 2 matches expected size 1.

/home/jenkins/bknix-dfl/build/core-19468-621c8/web/sites/all/modules/civicrm/ext/financialacls/tests/phpunit/Civi/Financialacls/BuildAmountHookTest.php:40
/home/jenkins/bknix-dfl/extern/phpunit6/phpunit6.phar:570

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Feb 1, 2021

My understanding is that ccid in the url is an option if you are making a payment against an existing contribution (personally I'd rather see us expose the add payment form but it's complicated..... & the contribution pages are crazy overloaded in general)

Anyway - rather than using a straight getter I'd go for a descriptive function ie

public function isPaymentAgainstExistingContribution() to be accessed from the form rule

@mattwire
Copy link
Contributor Author

mattwire commented Feb 1, 2021

@demeritcowboy @eileenmcnaughton Thanks for reviewing. I've changed _ccid to public. Adding a getter in this PR is a step too far as this was just about understanding what that param was rather than actually doing any cleanup/refactoring.

@eileenmcnaughton
Copy link
Contributor

OK - looks good now

@seamuslee001 seamuslee001 merged commit 0f323cd into civicrm:master Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants