-
-
Notifications
You must be signed in to change notification settings - Fork 827
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
[REF] Follow up cleanup #17788
[REF] Follow up cleanup #17788
Conversation
This removes an IF block that relies on the always-true parameter I'm pretty sure it just wasn't done last round as all the white space created a lot of noise
(Standard links)
|
test this please |
@@ -87,7 +87,7 @@ class CRM_Contribute_Form_ContributionRecur extends CRM_Core_Form { | |||
/** | |||
* Details of the subscription (recurring contribution) to be altered. | |||
* | |||
* @var array | |||
* @var \CRM_Core_DAO | |||
*/ | |||
protected $subscriptionDetails = []; |
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.
It does seem to be a DAO, so now this initialization is weird.
Otherwise agree with everything in the PR and did a quick r-run seems ok.
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.
@demeritcowboy ouch - but TBH I'd rather punt on that as the change is right & I'm not touching this form other than comments
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.
Ok
merging as per @demeritcowboy 's review |
Overview
This removes an IF block that relies on the always-true parameter
I'm pretty sure it just wasn't done last round as all the white space created a lot of noise
Before
If -> else exists but the condition for the IF is always true because this is the only place $cancelSubscription is referred to
https://github.com/civicrm/civicrm-core/pull/17788/files#diff-30a8e5b11544ab10573dea3f36cb9db2L202
After
Block removed
Technical Details
This is best viewed with the w=1 parameter - https://github.com/civicrm/civicrm-core/pull/17788/files?w=1 as it is otherwise hard to read. There are small additional cleanups:
Comments