-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Remove unused parameter, immediately overwritten parameter #17131
Conversation
(Standard links)
|
@@ -132,15 +143,14 @@ public function buildQuickForm() { | |||
// get the profile information | |||
if ($this->_batchInfo['type_id'] == $batchTypes['Contribution']) { | |||
CRM_Utils_System::setTitle(ts('Batch Data Entry for Contributions')); | |||
$customFields = CRM_Core_BAO_CustomField::getFields('Contribution'); |
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.
not used
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.
FWIW, to my eye, the handling of $customFields
in processMembership()
looks fairly similar (i.e. no obvious/meaningful reads, only obvious writes). Not saying that needs to be addressed at the same time - but just in case you're interested.
Maybe after the r-test
build finishes, then we just to do 5-min r-run
on the autobuild site to confirm that the custom-fields still render+save on the batch-entry screen.
} | ||
elseif ($this->_batchInfo['type_id'] == $batchTypes['Membership']) { | ||
CRM_Utils_System::setTitle(ts('Batch Data Entry for Memberships')); | ||
} | ||
elseif ($this->_batchInfo['type_id'] == $batchTypes['Pledge Payment']) { | ||
CRM_Utils_System::setTitle(ts('Batch Data Entry for Pledge Payments')); | ||
} | ||
$this->_fields = []; |
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.
see next line...
Overview
Minor code cleanup
Before
Var defined, not used
After
poof
Technical Details
Comments