Skip to content
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

dev/core#2719 [REF] Remove some legacy references to contribution_invoice_settings #20862

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[REF] Remove some legacy references to contribution_invoice_settings

Before

  $invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
  $invoicing = $invoiceSettings['invoicing'];

After

$invoicing = Civi::settings()->get('invoicing')

Technical Details

These subkeys are now settings in their own right & can be accessed directly. The Settings code handles
inconsistencies so we don't need to

Comments

@civibot
Copy link

civibot bot commented Jul 15, 2021

(Standard links)

@civibot civibot bot added the master label Jul 15, 2021
These subkeys are now settings in their own right & can be accessed directly. The Settings code handles
inconsistencies so we don't need to
@eileenmcnaughton
Copy link
Contributor Author

test this please

@yashodha
Copy link
Contributor

test failures don't look related. Test this please.

@eileenmcnaughton eileenmcnaughton changed the title [REF] Remove some legacy references to contribution_invoice_settings dev/core#2719 [REF] Remove some legacy references to contribution_invoice_settings Jul 24, 2021
@eileenmcnaughton
Copy link
Contributor Author

@yashodha are you OK merging this?

@mlutfy
Copy link
Member

mlutfy commented Jul 29, 2021

@eileenmcnaughton If extensions were checking this setting previously, will they break? (I don't really worry about it, but will document more clearly for release blog)

@eileenmcnaughton
Copy link
Contributor Author

@mlutfy no - there is actually code in the settings bag that handles it quietly - it would be nice to deprecate calling it indirectly - which I could do as a follow up

@mlutfy mlutfy merged commit fdb0407 into civicrm:master Jul 29, 2021
@mlutfy
Copy link
Member

mlutfy commented Jul 29, 2021

Sounds good, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants