-
-
Notifications
You must be signed in to change notification settings - Fork 824
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 Code cleanup to core task class #12316
NFC Code cleanup to core task class #12316
Conversation
(Standard links)
|
* | ||
* @var int | ||
*/ | ||
static $queryMode = CRM_Contact_BAO_Query::MODE_CASE; |
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.
Where is this 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.
I couldn't find any instances?
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's a baby step towards making that preProcessCommon function generic enough to handle more than just the case task.
Just a testing note - this messes with the $useTable variable so we need to check that it is still possible to export more than 500 contacts - eg from manage groups and normal searches only retrieve the first 500 UPDATE I confirmed useTable not used here |
@mattwire I worked through this refactor locally & it makes sense. It changes 'queryMode' to be more correct - does that fix any bug? And if so is there something still needing backporting to the rc? I'm merging this but can we follow up by adding a getter on queryMode ?
is, IMHO, less ugly than
|
Overview
Just commenting and variable renaming towards making this more generic.
Identified during investigation for dev/core#158
Technical Details
CRM_Core_Form_Task::preProcessCommon() is currently only used by CRM_Case_Form_Task.