Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: civicrm/civicrm-core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0695ef70054f56905cd6f7ef24c22de0f9e3ab02
Choose a base ref
..
head repository: civicrm/civicrm-core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b195ca8026a46d57d59db35457a11c5f1d308ba5
Choose a head ref
Showing with 4 additions and 10 deletions.
  1. +4 −10 CRM/Upgrade/Incremental/php/FiveSeventyThree.php
14 changes: 4 additions & 10 deletions CRM/Upgrade/Incremental/php/FiveSeventyThree.php
Original file line number Diff line number Diff line change
@@ -34,17 +34,11 @@ public function upgrade_5_73_alpha1($rev): void {

public static function disableFinancialAcl($rev): bool {
$setting = CRM_Core_DAO::singleValueQuery('SELECT value FROM civicrm_setting WHERE name = "acl_financial_type"');
if (!$setting) {
return TRUE;
}
$setting = unserialize($setting);
if ($setting) {
CRM_Extension_System::singleton()
->getManager()
->disable(['financialacls']);
CRM_Extension_System::singleton()
->getManager()
->uninstall(['financialacls']);
$setting = unserialize($setting);
}
if (!$setting) {
CRM_Core_DAO::executeQuery('UPDATE civicrm_extension SET is_active = 0 WHERE full_name = "financialacls"');
}
return TRUE;
}