-
-
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] transform the setting of defaults in CustomField::create to be like (some) other entities #14671
Conversation
(Standard links)
|
@eileenmcnaughton can you rebase this please |
06c753d
to
6d65817
Compare
6d65817
to
0d16542
Compare
@eileenmcnaughton what happened? |
…like (some) other entities This patter (massaging the params & then copying) is more consistent. PR also moves creating the transaction to the start of the fn I am cleaning up towards adding a bulk function that can be utilised by api v4 to create multiple fields with some efficiency on sql statements (which matters when adding 2 or more fields to a large table)
I think I mis-pushed it to be empty & it auto-closed |
it's back! |
@colemanw passing now |
//CRM-15792 - Custom field gets disabled if is_active not set | ||
// this would ideally be a mysql default. | ||
'is_active' => TRUE, | ||
'is_view' => FALSE, |
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.
Why wouldn't all of these be mysql defaults?
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.
Yeah beats me - but I wasn't going that far in this PR
Overview
Code cleanup only
Before
Less consistent / readable
After
More consistent / readable
Technical Details
This pattern (massaging the params & then copying) is more consistent. PR also moves creating the transaction to the start of the fn
I am cleaning up towards adding a bulk function that can be utilised by api v4 to create multiple fields with some efficiency on
sql statements (which matters when adding 2 or more fields to a large table)
Comments