Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
f619c07
Use same empty values remove function as Contribution class
eileenmcnaughton Feb 5, 2025
e49219c
Deprecate legacy parameters to Address::format()
eileenmcnaughton Feb 6, 2025
bb0e451
Start to parse out entities in params
eileenmcnaughton Feb 4, 2025
f392fbc
AdminUI - Fix Manage ACLs mode column
colemanw Feb 7, 2025
a33426a
Set version to 6.1.alpha1
Feb 7, 2025
7b68c03
Installer - Use Riverlea's Minetta by default
totten Feb 7, 2025
afded47
dev/core#5720 - Ensure default site email address is respected
colemanw Feb 7, 2025
aafbf17
OptionGroup - Deprecate isDomainOptionGroup function
colemanw Feb 7, 2025
6f55977
UtilsRule - Cleanup overcomplicated code to not use CRM_Utils_Array::…
colemanw Feb 7, 2025
950207c
UtilsArray - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
337face
Merge pull request #31984 from colemanw/aclDeny
colemanw Feb 7, 2025
d7b0ffc
Merge pull request #31990 from colemanw/ruleCleanup
demeritcowboy Feb 7, 2025
23a3ca9
Update existing navigation labels to match new 'Site Email Address' l…
colemanw Feb 7, 2025
90aa550
Merge pull request #31943 from eileenmcnaughton/mapped_row_2
eileenmcnaughton Feb 7, 2025
3bd574e
Use tokens to render display name
eileenmcnaughton Aug 14, 2024
29db3be
Merge pull request #31988 from colemanw/navLabel
eileenmcnaughton Feb 7, 2025
f467c78
Fix membership import to update without requiring ID
eileenmcnaughton Feb 6, 2025
d3f7f5a
Add guard around CIVICRM_IFRAME constant
mattwire Feb 7, 2025
d79e4bf
Merge pull request #31997 from mattwire/iframe
totten Feb 8, 2025
0e17a6c
Decommission thresholdQuery, only call legacy hook from backward comp…
eileenmcnaughton Feb 7, 2025
0157ab0
Merge pull request #31989 from colemanw/noDomain
eileenmcnaughton Feb 8, 2025
fa5b2b7
Merge pull request #31996 from eileenmcnaughton/mapped_row_2
colemanw Feb 8, 2025
4368f6d
[REF] Api3 - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
256c53e
Use local variable instead of protected property
eileenmcnaughton Feb 8, 2025
e27cd7e
Use named variable rather than this
eileenmcnaughton Feb 8, 2025
ecf9f4b
[REF] Bin - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
9a74d8c
[REF] Activity - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
69bdf37
[REF] Admin - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
a07b2d3
[REF] Badge - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
2d0419e
Merge pull request #31999 from colemanw/api3Cleanup
demeritcowboy Feb 8, 2025
c70e7e8
Merge pull request #32001 from colemanw/bin
demeritcowboy Feb 8, 2025
662c7f1
Merge pull request #32002 from colemanw/actDep
demeritcowboy Feb 8, 2025
ad3a067
[REF] Batch - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
fd06d5b
[REF] Campaign - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
310ff81
Merge pull request #32003 from colemanw/adminDep
demeritcowboy Feb 8, 2025
1e40fc2
[REF] Relationship - Refactor out uses of deprecated CRM_Utils_Array:…
colemanw Feb 9, 2025
422f49e
[REF] Contact - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 9, 2025
c0ca549
[REF] CRM/Contribute - Refactor out uses of deprecated CRM_Utils_Arra…
colemanw Feb 7, 2025
03b8d30
[REF] CRM/Core - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
eafa3ac
[REF] CRM/Custom - Refactor out uses of deprecated CRM_Utils_Array::v…
colemanw Feb 7, 2025
dff2550
[REF] CRM/Event - Refactor out uses of deprecated CRM_Utils_Array::va…
colemanw Feb 7, 2025
ba4869b
[REF] CRM/Misc - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
7cdc226
[REF] CRM/Member - Refactor out uses of deprecated CRM_Utils_Array::v…
colemanw Feb 7, 2025
4e651c0
[REF] CRM/Utils - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 7, 2025
857b9b6
[REF] CRM/Report - Refactor out uses of deprecated CRM_Utils_Array::v…
colemanw Feb 9, 2025
9b0430d
[REF] CRM/Report/Form/* - Refactor out uses of deprecated CRM_Utils_A…
colemanw Feb 9, 2025
05fe8e5
[REF] CRM/Tag - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
9f28ea2
[REF] CRM/SMS - Refactor out uses of deprecated CRM_Utils_Array::value.
colemanw Feb 7, 2025
cc4e501
[REF] ext/civigrant - Refactor out uses of deprecated CRM_Utils_Array…
colemanw Feb 9, 2025
5dd3952
[REF] ext/ckeditor4 - Refactor out uses of deprecated CRM_Utils_Array…
colemanw Feb 9, 2025
dc206d4
[REF] ext/eventcart - Refactor out uses of deprecated CRM_Utils_Array…
colemanw Feb 9, 2025
e7803c0
[REF] ext/payments - Refactor out uses of deprecated CRM_Utils_Array:…
colemanw Feb 9, 2025
02793c7
[REF] ext/misc - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 9, 2025
a47276d
[REF] ext/legacycustomsearches - Refactor out uses of deprecated CRM_…
colemanw Feb 9, 2025
ac7cdf2
Merge pull request #32025 from colemanw/extDep2
eileenmcnaughton Feb 9, 2025
95773bf
Merge pull request #32026 from colemanw/legacyDep
eileenmcnaughton Feb 9, 2025
acbb611
Ref clean up contact lookup handling in Participant import
eileenmcnaughton Jul 1, 2024
a96d354
Merge pull request #32004 from colemanw/badgeDep
eileenmcnaughton Feb 9, 2025
6a7b4f6
Merge pull request #32022 from colemanw/ckDep
eileenmcnaughton Feb 9, 2025
eedf0e3
Merge pull request #32013 from colemanw/miscDep
eileenmcnaughton Feb 9, 2025
a9cb8b4
Merge pull request #32021 from colemanw/grantDep
eileenmcnaughton Feb 9, 2025
f25a8ad
Merge pull request #32009 from colemanw/contributeDep
eileenmcnaughton Feb 9, 2025
cdf691d
Merge pull request #32005 from colemanw/batchDep
eileenmcnaughton Feb 9, 2025
3e7c22c
Merge pull request #32019 from colemanw/tagDep
eileenmcnaughton Feb 9, 2025
2900267
Merge pull request #32017 from colemanw/reportDep
eileenmcnaughton Feb 9, 2025
22c23bb
Merge pull request #32016 from colemanw/utilsDep
eileenmcnaughton Feb 9, 2025
d0c1a8c
[REF] CRM/Price - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 7, 2025
0ba7ab9
Merge pull request #32000 from eileenmcnaughton/mapped_row_2
colemanw Feb 9, 2025
1968717
Merge pull request #30583 from eileenmcnaughton/part_import_contact
colemanw Feb 9, 2025
0244ab9
Merge pull request #32020 from colemanw/smsDep
colemanw Feb 9, 2025
109f09c
Merge pull request #32024 from colemanw/cartDep
eileenmcnaughton Feb 9, 2025
81ae5a0
Merge pull request #32018 from colemanw/reportFormDep
eileenmcnaughton Feb 9, 2025
7cc449c
Merge pull request #32014 from colemanw/memberDep
eileenmcnaughton Feb 9, 2025
0437c89
Merge pull request #32006 from colemanw/campaignDep
eileenmcnaughton Feb 9, 2025
9d29123
Merge pull request #31995 from eileenmcnaughton/member_validate
colemanw Feb 10, 2025
2da6f47
Merge pull request #32007 from colemanw/contactDep
colemanw Feb 10, 2025
1867e58
Do legacy param setting in the legacy callers
eileenmcnaughton Feb 10, 2025
90d0dd3
Merge pull request #32015 from colemanw/priceDep
monishdeb Feb 10, 2025
d3aaa41
Merge pull request #32008 from colemanw/contactDep2
monishdeb Feb 10, 2025
56b2695
SixZero - dont ts upgrader strings
ufundo Feb 10, 2025
675b9be
Merge pull request #32030 from eileenmcnaughton/legacy
colemanw Feb 10, 2025
bd2fe83
Merge pull request #32033 from ufundo/upgrader-ts
demeritcowboy Feb 10, 2025
9b4e2a6
Merge pull request #32023 from colemanw/extDep
monishdeb Feb 10, 2025
ce2a503
Merge pull request #32035 from civicrm/6.0
colemanw Feb 10, 2025
5031306
Merge pull request #32011 from colemanw/customDep
eileenmcnaughton Feb 10, 2025
c73fb00
Merge pull request #32010 from colemanw/coreDep
colemanw Feb 10, 2025
4e4b4e6
Avoid fatal error when loading CiviMail emails when current user does…
stesi561 Feb 10, 2025
07cdd0c
Merge pull request #32012 from colemanw/eventDep
demeritcowboy Feb 10, 2025
9535552
Fix is primary criteria
stesi561 Feb 10, 2025
1b77e45
Standalone - Fix syntax error typo in conditional
colemanw Feb 11, 2025
10a94d2
Api4 - Fix typo in code
colemanw Feb 11, 2025
7fec6f5
Fix notice by switching to apiv4
eileenmcnaughton Feb 10, 2025
c110d31
Merge pull request #32042 from colemanw/api4Typo
eileenmcnaughton Feb 11, 2025
0dee43e
[REF] Refactor redundant `isset()`s to use null coalescing operator (…
colemanw Feb 11, 2025
0adc375
[REF] Remove unused variables
colemanw Feb 11, 2025
edad0b5
Merge pull request #32039 from eileenmcnaughton/notice
colemanw Feb 11, 2025
afd2830
[REF] api/v3 - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 11, 2025
f9ebd66
[REF] CRM/Report - Refactor out uses of deprecated CRM_Utils_Array::v…
colemanw Feb 11, 2025
6d66765
[REF] CRM/Event - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 11, 2025
7fe6287
[REF] CRM/Activity - Refactor out uses of deprecated CRM_Utils_Array:…
colemanw Feb 11, 2025
c7aca01
[REF] CiviContribute - Refactor out uses of deprecated CRM_Utils_Arra…
colemanw Feb 11, 2025
64b4faf
[REF] CRM/Case - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 11, 2025
9acf629
[REF] CRM/Misc - Refactor out uses of deprecated CRM_Utils_Array::value
colemanw Feb 11, 2025
54b1536
Merge pull request #32041 from colemanw/emptyFix
seamuslee001 Feb 11, 2025
f0da543
Merge pull request #32045 from colemanw/unusedVar
seamuslee001 Feb 11, 2025
59ba856
Merge pull request #32037 from stesi561/mailing-info-default-email-fix
seamuslee001 Feb 11, 2025
ca70dc2
Merge pull request #31985 from totten/6.0-theme-install
ufundo Feb 11, 2025
9d5a57e
Merge pull request #32047 from colemanw/reportDep2
monishdeb Feb 11, 2025
eff70a0
Merge pull request #32048 from colemanw/eventDep2
monishdeb Feb 11, 2025
14db0b0
Merge pull request #32044 from colemanw/issetCo
monishdeb Feb 11, 2025
2fb414e
Merge pull request #32055 from civicrm/6.0
demeritcowboy Feb 11, 2025
8c81ad4
Merge pull request #32049 from colemanw/actDep2
demeritcowboy Feb 11, 2025
c563969
Merge pull request #32051 from colemanw/caseDep2
demeritcowboy Feb 11, 2025
8a42c09
Merge pull request #32046 from colemanw/api3Dep
demeritcowboy Feb 11, 2025
65aa35f
CiviCase - Fix links and breadcrumbs when viewing case without cid in…
colemanw Feb 11, 2025
2f6224e
dev/core#5578 Adding Recurring tokens to Contribution/Membership toke…
shaneonabike Dec 6, 2024
ec46f8b
Standalone - Fix crash when viewing afform
colemanw Feb 11, 2025
7921523
Afform - Breadcrumb format fixes
colemanw Feb 11, 2025
1d29519
Fix typo in release notes
wmortada Feb 11, 2025
0b4bf58
Merge pull request #32053 from colemanw/miscDep
eileenmcnaughton Feb 11, 2025
c282913
Merge pull request #32050 from colemanw/contDep
eileenmcnaughton Feb 11, 2025
122b94a
don't send email when changing payment method
demeritcowboy Feb 11, 2025
08a4876
Merge pull request #32057 from wmortada/patch-1
eileenmcnaughton Feb 11, 2025
2174348
Merge pull request #31987 from colemanw/defaultFromAddress
eileenmcnaughton Feb 11, 2025
86903c3
Merge pull request #32059 from colemanw/fixCrumbs
eileenmcnaughton Feb 11, 2025
b9b92e5
Merge pull request #32060 from civicrm/6.0
eileenmcnaughton Feb 11, 2025
38aad63
Adding appropriate unit testing for new tokens
shaneonabike Feb 11, 2025
4040cc6
ScheduledCommunications - Increase length of fields used by SearchKit…
colemanw Feb 11, 2025
99c98c1
Run regen
eileenmcnaughton Feb 11, 2025
d9f2162
Merge pull request #32061 from eileenmcnaughton/6.0
demeritcowboy Feb 11, 2025
76aa578
Ensure modelProps has contributionID
eileenmcnaughton Feb 11, 2025
25f376e
Merge pull request #32063 from civicrm/6.0
eileenmcnaughton Feb 11, 2025
71e398f
Merge pull request #32058 from colemanw/fixCaseLinks
demeritcowboy Feb 11, 2025
71e5016
add deprecation message to ConfigSetting::doSiteMove
ufundo Feb 6, 2025
be4d9dc
remove UpdateConfigBackend setting page
ufundo Feb 6, 2025
84d01e4
add a direct Clear Caches nav menu item
ufundo Feb 6, 2025
e58f969
6.1 upgrader - use SQL rather than Api4
ufundo Feb 7, 2025
94d4c8d
update deleted files list
ufundo Feb 7, 2025
b7ac756
cache clear menu item - set permission in upgrader
ufundo Feb 7, 2025
c5f87d2
System.ResetPaths - add deprecation notice
ufundo Feb 10, 2025
e91b473
Merge pull request #31983 from eileenmcnaughton/label_display
colemanw Feb 11, 2025
9321f63
regenerate civicrm_generated
Feb 11, 2025
3529369
Merge pull request #32062 from demeritcowboy/paymethod-email
seamuslee001 Feb 11, 2025
d981e58
Merge pull request #31579 from shaneonabike/recurTokens
colemanw Feb 12, 2025
d8b9e2d
Merge pull request #32054 from colemanw/alterActionScheduleLength
eileenmcnaughton Feb 12, 2025
b9a5226
Merge pull request #32066 from civicrm/6.0
eileenmcnaughton Feb 12, 2025
f0232a2
Merge pull request #31981 from ufundo/remove-reset-paths
demeritcowboy Feb 12, 2025
c57f523
Merge pull request #31982 from eileenmcnaughton/label_dep
demeritcowboy Feb 12, 2025
895a8f7
Merge pull request #32064 from eileenmcnaughton/confirm
monishdeb Feb 12, 2025
65ad145
Riverlea rollout - enable Riverlea ext by default from 6.1
ufundo Feb 11, 2025
2c063ea
Riverlea rollout - freeze upgrading sites with Automatic to Greenwich
ufundo Feb 7, 2025
a1de54f
Riverlea rollout - remove Themes::DEFAULT_THEME
ufundo Feb 7, 2025
e792143
Riverlea rollout - add NO_THEME, make default for theme settings
ufundo Feb 7, 2025
9dac613
Riverlea rollout - unhide Greenwich (can be disabled now)
ufundo Feb 6, 2025
bd28191
fix theme test falling back to NO_THEME if set theme isn't recognised
ufundo Feb 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CRM/Activity/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -617,11 +617,11 @@ public static function selectorReturnProperties() {
public static function whereClauseSingleActivityText(&$values, &$query) {
[$name, $op, $value, $grouping, $wildcard] = $values;
$activityOptionValues = $query->getWhereValues('activity_option', $grouping);
$activityOption = CRM_Utils_Array::value(2, $activityOptionValues, 6);
$activityOption = $activityOptionValues[2] ?? 6;

$query->_useDistinct = TRUE;

$label = ts('Activity Text (%1)', [1 => CRM_Utils_Array::value($activityOption, CRM_Core_SelectValues::activityTextOptions())]);
$label = ts('Activity Text (%1)', [1 => CRM_Core_SelectValues::activityTextOptions()[$activityOption] ?? '']);
$clauses = [];
if ($activityOption % 2 == 0) {
$clauses[] = $query->buildClause('civicrm_activity.details', $op, $value, 'String');
Expand Down
2 changes: 1 addition & 1 deletion CRM/Activity/Form/ActivityFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function setDefaultValues() {
$defaults = Civi::contactSettings()->get('activity_tab_filter');
}
// set Activity status 'Scheduled' by default only for dashlet
elseif (strstr(CRM_Utils_Array::value('q', $_GET), 'dashlet')) {
elseif (strstr($_GET['q'] ?? '', 'dashlet')) {
$defaults['status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'status_id', 'Scheduled');
}
return $defaults;
Expand Down
2 changes: 1 addition & 1 deletion CRM/Activity/Form/ActivityView.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function preProcess() {
$engagementLevel = $defaults['engagement_level'] ?? NULL;
if ($engagementLevel) {
$engagementLevels = CRM_Campaign_PseudoConstant::engagementLevel();
$values['engagement_level'] = CRM_Utils_Array::value($engagementLevel, $engagementLevels, $engagementLevel);
$values['engagement_level'] = $engagementLevels[$engagementLevel] ?? $engagementLevel;
}

$values['attachment'] = CRM_Core_BAO_File::attachmentInfo('civicrm_activity', $activityId);
Expand Down
2 changes: 1 addition & 1 deletion CRM/Activity/Page/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function getCaseActivity() {
$caseID = CRM_Utils_Type::validate($_GET['caseID'], 'Integer');
$contactID = CRM_Utils_Type::validate($_GET['cid'], 'Integer');
$userID = CRM_Utils_Type::validate($_GET['userID'], 'Integer');
$context = CRM_Utils_Type::validate(CRM_Utils_Array::value('context', $_GET), 'String');
$context = CRM_Utils_Type::validate($_GET['context'] ?? NULL, 'String');

$optionalParameters = [
'source_contact_id' => 'Integer',
Expand Down
2 changes: 1 addition & 1 deletion CRM/Activity/Selector/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public function &getRows($action, $offset, $rowCount, $sort, $output = NULL, $ca

$engagementLevel = $row['engagement_level'] ?? NULL;
if ($engagementLevel) {
$row['engagement_level'] = CRM_Utils_Array::value($engagementLevel, $engagementLevels, $engagementLevel);
$row['engagement_level'] = $engagementLevels[$engagementLevel] ?? $engagementLevel;
}

$actionLinks = $this->actionLinks($row['activity_type_id'],
Expand Down
4 changes: 1 addition & 3 deletions CRM/Activity/Selector/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ public function &getRows($action, $offset, $rowCount, $sort, $output = NULL) {

$engagementLevel = $row['activity_engagement_level'] ?? NULL;
if ($engagementLevel) {
$row['activity_engagement_level'] = CRM_Utils_Array::value($engagementLevel,
$engagementLevels, $engagementLevel
);
$row['activity_engagement_level'] = $engagementLevels[$engagementLevel] ?? $engagementLevel;
}

// Check if recurring activity.
Expand Down
21 changes: 4 additions & 17 deletions CRM/Admin/Form/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
*/
protected $_gLabel;

/**
* Is this Option Group Domain Specific
* @var bool
*/
protected $_domainSpecific = FALSE;

/**
* @var bool
*/
Expand Down Expand Up @@ -88,7 +82,6 @@ public function preProcess() {
'name'
);
$this->_gLabel = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', $this->_gid, 'title');
$this->_domainSpecific = CRM_Core_OptionGroup::isDomainOptionGroup($this->_gName);
$url = "civicrm/admin/options/{$this->_gName}";
$params = "reset=1";

Expand All @@ -115,12 +108,6 @@ public function preProcess() {
$session->pushUserContext(CRM_Utils_System::url($url, $params));
$this->assign('id', $this->_id);
$this->setDeleteMessage();
if ($this->_id && CRM_Core_OptionGroup::isDomainOptionGroup($this->_gName)) {
$domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
if (CRM_Core_Config::domainID() != $domainID) {
CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.'));
}
}
if ($this->isSubmitted()) {
// The custom data fields are added to the form by an ajax form.
// However, if they are not present in the element index they will
Expand Down Expand Up @@ -160,7 +147,7 @@ public function setDefaultValues() {
'postal_greeting',
'addressee',
])) {
$defaults['contact_type_id'] = (CRM_Utils_Array::value('filter', $defaults)) ? $defaults['filter'] : NULL;
$defaults['contact_type_id'] = !empty($defaults['filter']) ? $defaults['filter'] : NULL;
}
// CRM-11516
if ($this->_gName == 'payment_instrument' && $this->_id) {
Expand Down Expand Up @@ -221,7 +208,7 @@ public function buildQuickForm(): void {
$this->addRule('value',
ts('This Value already exists in the database for this option group. Please select a different Value.'),
'optionExists',
['CRM_Core_DAO_OptionValue', $this->_id, $this->_gid, 'value', $this->_domainSpecific]
['CRM_Core_DAO_OptionValue', $this->_id, $this->_gid, 'value']
);
}

Expand All @@ -239,7 +226,7 @@ public function buildQuickForm(): void {
$this->addRule('label',
ts('This Label already exists in the database for this option group. Please select a different Label.'),
'optionExists',
['CRM_Core_DAO_OptionValue', $this->_id, $this->_gid, 'label', $this->_domainSpecific]
['CRM_Core_DAO_OptionValue', $this->_id, $this->_gid, 'label']
);
}

Expand Down Expand Up @@ -499,7 +486,7 @@ public function postProcess() {

if (CRM_Core_BAO_OptionValue::deleteRecord(['id' => $this->_id])) {
if ($this->_gName == 'phone_type') {
CRM_Core_BAO_Phone::setOptionToNull(CRM_Utils_Array::value('value', $this->_defaultValues));
CRM_Core_BAO_Phone::setOptionToNull($this->_defaultValues['value'] ?? NULL);
}

CRM_Core_Session::setStatus(ts('Selected %1 type has been deleted.', [1 => $this->_gLabel]), ts('Record Deleted'), 'success');
Expand Down
2 changes: 1 addition & 1 deletion CRM/Admin/Form/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public function postProcess() {
public function updatePaymentProcessor($values, $domainID, $test) {
if ($test) {
foreach (['user_name', 'password', 'signature', 'url_site', 'url_recur', 'url_api', 'url_button', 'subject'] as $field) {
$values[$field] = empty($values["test_{$field}"]) ? CRM_Utils_Array::value($field, $values) : $values["test_{$field}"];
$values[$field] = empty($values["test_{$field}"]) ? ($values[$field] ?? NULL) : $values["test_{$field}"];
}
}
if (!empty($values['accept_credit_cards'])) {
Expand Down
8 changes: 3 additions & 5 deletions CRM/Admin/Form/Setting/Localization.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ public function buildQuickForm() {
*/
public static function formRule($fields) {
$errors = [];
if (($fields['monetaryThousandSeparator'] ?? NULL) ==
CRM_Utils_Array::value('monetaryDecimalPoint', $fields)
) {
if (($fields['monetaryThousandSeparator'] ?? NULL) == ($fields['monetaryDecimalPoint'] ?? NULL)) {
$errors['monetaryThousandSeparator'] = ts('Thousands Separator and Decimal Delimiter can not be the same.');
}

Expand Down Expand Up @@ -200,7 +198,7 @@ public function postProcess() {
}

// if we manipulated the language list, return to the localization admin screen
$return = (bool) (CRM_Utils_Array::value('makeMultilingual', $values) or CRM_Utils_Array::value('addLanguage', $values));
$return = (!empty($values['makeMultilingual']) || !empty($values['addLanguage']));

// Update enabled currencies
// we do this only to initialize monetary decimal point and thousand separator
Expand All @@ -221,7 +219,7 @@ public function postProcess() {
unset($filteredValues['addLanguage']);
unset($filteredValues['languageLimit']);

Civi::settings()->set('languageLimit', CRM_Utils_Array::value('languageLimit', $values));
Civi::settings()->set('languageLimit', $values['languageLimit'] ?? NULL);

// save all the settings
parent::commonProcess($filteredValues);
Expand Down
6 changes: 2 additions & 4 deletions CRM/Admin/Form/Setting/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ public static function formRule($fields) {
if ($fields['mailerJobSize'] < 1000) {
$errors['mailerJobSize'] = ts('The job size must be at least 1000 or set to 0 (unlimited).');
}
elseif ($fields['mailerJobSize'] <
CRM_Utils_Array::value('mailerBatchLimit', $fields)
) {
elseif ($fields['mailerJobSize'] < ($fields['mailerBatchLimit'] ?? 0)) {
$errors['mailerJobSize'] = ts('A job size smaller than the batch limit will negate the effect of the batch limit.');
}
}
// dev/core#1768 Check the civimail_sync_interval setting.
if (CRM_Utils_Array::value('civimail_sync_interval', $fields) < 1) {
if (($fields['civimail_sync_interval'] ?? 0) < 1) {
$errors['civimail_sync_interval'] = ts('Error - the synchronization interval must be at least 1');
}
return empty($errors) ? TRUE : $errors;
Expand Down
10 changes: 5 additions & 5 deletions CRM/Admin/Form/Setting/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public function buildQuickForm() {
$this->setTitle(ts('Settings - Outbound Mail'));
$this->add('text', 'sendmail_path', ts('Sendmail Path'));
$this->add('text', 'sendmail_args', ts('Sendmail Argument'));
$this->add('text', 'smtpServer', ts('SMTP Server'), CRM_Utils_Array::value('smtpServer', $props));
$this->add('text', 'smtpPort', ts('SMTP Port'), CRM_Utils_Array::value('smtpPort', $props));
$this->addYesNo('smtpAuth', ts('Authentication?'), CRM_Utils_Array::value('smtpAuth', $props));
$this->addElement('text', 'smtpUsername', ts('SMTP Username'), CRM_Utils_Array::value('smtpUsername', $props));
$this->addElement('password', 'smtpPassword', ts('SMTP Password'), CRM_Utils_Array::value('smtpPassword', $props));
$this->add('text', 'smtpServer', ts('SMTP Server'), $props['smtpServer'] ?? NULL);
$this->add('text', 'smtpPort', ts('SMTP Port'), $props['smtpPort'] ?? NULL);
$this->addYesNo('smtpAuth', ts('Authentication?'), $props['smtpAuth'] ?? NULL);
$this->addElement('text', 'smtpUsername', ts('SMTP Username'), $props['smtpUsername'] ?? NULL);
$this->addElement('password', 'smtpPassword', ts('SMTP Password'), $props['smtpPassword'] ?? NULL);

$this->_testButtonName = $this->getButtonName('refresh', 'test');

Expand Down
59 changes: 0 additions & 59 deletions CRM/Admin/Form/Setting/UpdateConfigBackend.php

This file was deleted.

2 changes: 1 addition & 1 deletion CRM/Admin/Form/SettingTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected function getSettingMetadata($setting) {
* @return mixed
*/
protected function getSettingMetadataItem($setting, $item) {
return CRM_Utils_Array::value($item, $this->getSettingsMetaData()[$setting]);
return $this->getSettingsMetaData()[$setting][$item] ?? NULL;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion CRM/Admin/Page/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static function getStatusMsg() {
public static function getTagTree() {
CRM_Core_Page_AJAX::validateAjaxRequestMethod();
$parent = CRM_Utils_Type::escape(($_GET['parent_id'] ?? 0), 'Integer');
$substring = CRM_Utils_Type::escape(CRM_Utils_Array::value('str', $_GET), 'String');
$substring = CRM_Utils_Type::escape($_GET['str'] ?? NULL, 'String');
$result = [];

$whereClauses = ['is_tagset <> 1'];
Expand Down
14 changes: 7 additions & 7 deletions CRM/Badge/BAO/Badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,17 @@ public function labelCreator($formattedRow, $cellspacing = 0) {

$startOffset = 0;
if (!empty($formattedRow['image_1'])) {
$this->printImage($formattedRow['image_1'], NULL, NULL, CRM_Utils_Array::value('width_image_1', $formattedRow),
CRM_Utils_Array::value('height_image_1', $formattedRow));
$this->printImage($formattedRow['image_1'], NULL, NULL, $formattedRow['width_image_1'] ?? NULL,
$formattedRow['height_image_1'] ?? NULL);
}

if (!empty($formattedRow['image_2'])) {
$this->printImage($formattedRow['image_2'], $x + 68, NULL, CRM_Utils_Array::value('width_image_2', $formattedRow),
CRM_Utils_Array::value('height_image_2', $formattedRow));
$this->printImage($formattedRow['image_2'], $x + 68, NULL, $formattedRow['width_image_2'] ?? NULL,
$formattedRow['height_image_2'] ?? NULL);
}

if ((CRM_Utils_Array::value('height_image_1', $formattedRow) >
CRM_Utils_Array::value('height_image_2', $formattedRow)) && !empty($formattedRow['height_image_1'])
if ((($formattedRow['height_image_1'] ?? 0) >
($formattedRow['height_image_2'] ?? 0)) && !empty($formattedRow['height_image_1'])
) {
$startOffset = $formattedRow['height_image_1'] ?? NULL;
}
Expand All @@ -213,7 +213,7 @@ public function labelCreator($formattedRow, $cellspacing = 0) {
default:
break;
}
$this->pdf->Image($formattedRow['participant_image'], $x + $imageAlign, $y + $startOffset, CRM_Utils_Array::value('width_participant_image', $formattedRow), CRM_Utils_Array::value('height_participant_image', $formattedRow));
$this->pdf->Image($formattedRow['participant_image'], $x + $imageAlign, $y + $startOffset, $formattedRow['width_participant_image'] ?? NULL, $formattedRow['height_participant_image'] ?? NULL);
if ($startOffset == NULL && !empty($formattedRow['height_participant_image'])) {
$startOffset = $formattedRow['height_participant_image'];
}
Expand Down
2 changes: 1 addition & 1 deletion CRM/Badge/Form/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function setDefaultValues() {
}

// its ok if there is no element called is_active
$defaults['is_active'] = ($this->_id) ? CRM_Utils_Array::value('is_active', $defaults) : 1;
$defaults['is_active'] = ($this->_id) ? ($defaults['is_active'] ?? NULL) : 1;

return $defaults;
}
Expand Down
7 changes: 2 additions & 5 deletions CRM/Batch/Form/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public static function formRule($params, $files, $self) {
if (!empty($params['soft_credit_contact_id'][$key]) && empty($params['soft_credit_amount'][$key])) {
$errors["soft_credit_amount[$key]"] = ts('Please enter the soft credit amount.');
}
if (!empty($params['soft_credit_amount']) && !empty($params['soft_credit_amount'][$key]) && CRM_Utils_Rule::cleanMoney(CRM_Utils_Array::value($key, $params['soft_credit_amount'])) > CRM_Utils_Rule::cleanMoney($value['total_amount'])) {
if (!empty($params['soft_credit_amount'][$key]) && CRM_Utils_Rule::cleanMoney($params['soft_credit_amount'][$key]) > CRM_Utils_Rule::cleanMoney($value['total_amount'])) {
$errors["soft_credit_amount[$key]"] = ts('Soft credit amount should not be greater than the total amount');
}

Expand Down Expand Up @@ -671,10 +671,7 @@ private function processContribution(array &$params): bool {
[$products, $options] = CRM_Contribute_BAO_Premium::getPremiumProductInfo();

$value['hidden_Premium'] = 1;
$value['product_option'] = CRM_Utils_Array::value(
$value['product_name'][1],
$options[$value['product_name'][0]]
);
$value['product_option'] = $options[$value['product_name'][0]][$value['product_name'][1]] ?? NULL;

$premiumParams = [
'product_id' => $value['product_name'][0],
Expand Down
7 changes: 0 additions & 7 deletions CRM/Campaign/Form/SurveyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ public function preProcess() {
$session = CRM_Core_Session::singleton();
$url = CRM_Utils_System::url('civicrm/admin/campaign/surveyType', 'reset=1');
$session->pushUserContext($url);

if ($this->_id && CRM_Core_OptionGroup::isDomainOptionGroup($this->_gName)) {
$domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
if (CRM_Core_Config::domainID() != $domainID) {
CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.'));
}
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions CRM/Campaign/Form/Task/Interview.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public function preProcess() {
else {
parent::preProcess();
//get the survey id from user submitted values.
$this->_surveyId = CRM_Utils_Array::value('campaign_survey_id', $this->get('formValues'));
$this->_interviewerId = CRM_Utils_Array::value('survey_interviewer_id', $this->get('formValues'));
$this->_surveyId = $this->get('formValues')['campaign_survey_id'] ?? NULL;
$this->_interviewerId = $this->get('formValues')['survey_interviewer_id'] ?? NULL;
}

if ($this->_surveyId) {
Expand Down
4 changes: 2 additions & 2 deletions CRM/Campaign/Form/Task/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public function preProcess() {
else {
parent::preProcess();
//get the survey id from user submitted values.
$this->_surveyId = CRM_Utils_Array::value('campaign_survey_id', $this->get('formValues'));
$this->_interviewerId = CRM_Utils_Array::value('survey_interviewer_id', $this->get('formValues'));
$this->_surveyId = $this->get('formValues')['campaign_survey_id'] ?? NULL;
$this->_interviewerId = $this->get('formValues')['survey_interviewer_id'] ?? NULL;
}

if (!$this->_surveyId) {
Expand Down
2 changes: 1 addition & 1 deletion CRM/Campaign/Page/Petition/ThankYou.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function run() {
$this->assign('survey_id', $petition_id);
$this->assign('status_id', $id);
$this->assign('is_share', $petition['is_share'] ?? NULL);
CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title', $petition));
CRM_Utils_System::setTitle($petition['thankyou_title'] ?? NULL);

// send thank you or email verification emails
/*
Expand Down
Loading