-
-
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
Allow setting metadata to use the table
option. Update example setting default_invoice_page
.
#16903
Conversation
(Standard links)
|
test this please |
@eileenmcnaughton can you rebase please |
This extends the ways in which a pseudoconstant can be defined in a setting to better reflect the ways that work for the DAO objects. In this one field is converted - default_invoice_page under CiviContribute settings. (Described as Default invoice payment page) The expected result is that the options in that page load the same as before. This change will reduce the temptation to call silly core functions from extensions....
ab9ee9a
to
356013b
Compare
@seamuslee001 rebased |
@eileenmcnaughton I'm going to say the test fails relate |
test this please |
@seamuslee001 interestingly the same errors were present on https://github.com/civicrm/civicrm-core/pull/16885/files. I didn't manage to reproduce locally so I'm not too sure what's going on |
@seamuslee001 looks like it wasn't this PR! |
docs PR for this is approved - please adjust the labels if you can when this is merged - and assign the appropriate |
table
option. Update example setting default_invoice_page
.
Update to reflect civicrm/civicrm-core#16903
Overview
A setting may specify a list of acceptable options (
pseudoconstant
). This PR adds another mechanism (table
) for defining that list, and it specifically updates one setting (default_invoice_page
) to use the new mechanism.The mechanism matches an equivalent mechanism available in DAO fields.
See also, developer documentation: civicrm/civicrm-dev-docs#784
Before
The setting
default_invoice_page
in CiviContribute displays a list of contribution pages:The list is generated by a
callback
function (which performs the DB queries).After
The setting
default_invoice_page
in CiviContribute settings displays the same list of contribution pages.However, the
callback
metadata is replaced withtable
metadata.Technical Details
This change will reduce the temptation to call silly core functions from extensions....
Comments
Builds off #16902