-
-
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
[REF] extract portion that creates the custom field record #14725
Conversation
(Standard links)
|
3a2fd0a
to
0da74fc
Compare
This need rebasing as well |
0da74fc
to
f45a42b
Compare
thanks - this is now rebased |
|
||
$triggerRebuild = CRM_Utils_Array::value('triggerRebuild', $params, TRUE); | ||
//create/drop the index when we toggle the is_searchable flag | ||
$customField = self::createCustomFieldRecord($params); | ||
$op = empty($params['id']) ? 'add' : 'modify'; |
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.
Actually @pradpnayak the net effect here is to set the op AFTER the pre hook has been called. I'm now on the fence about that - I guess it's a good thing to set afterwards even though other BAO don't but are also kinda inconsistent.
I don't have a strong opinion on that. I think this is better in than out so adding MOP. |
merged per mop |
Overview
Code extraction
Before
Less readable
After
More readable
Technical Details
Note this incorporates #14705 & extends it (which in turn is a superset of #14724 - this allows a reviewer to choose the size of 'chunk' to review)
Comments
Towards #14694