Skip to content
Snippets Groups Projects
Unverified Commit 7642d692 authored by DaveD's avatar DaveD Committed by GitHub
Browse files

Merge pull request #20487 from eileenmcnaughton/cust_value

Remove some unused variables
parents 446044fe 3d89c1a4
Branches
Tags
No related merge requests found
......@@ -37,12 +37,9 @@ class CRM_Core_BAO_CustomValueTable {
$VS = CRM_Core_DAO::VALUE_SEPARATOR;
foreach ($customParams as $tableName => $tables) {
foreach ($tables as $index => $fields) {
$sqlOP = NULL;
foreach ($tables as $fields) {
$hookID = NULL;
$hookOP = NULL;
$entityID = NULL;
$isMultiple = FALSE;
$set = [];
$params = [];
$count = 1;
......@@ -237,11 +234,11 @@ class CRM_Core_BAO_CustomValueTable {
$fieldExtends = $field['extends'] ?? NULL;
if (
CRM_Utils_Array::value('entity_table', $field) == 'civicrm_contact'
|| $fieldExtends == 'Contact'
|| $fieldExtends == 'Individual'
|| $fieldExtends == 'Organization'
|| $fieldExtends == 'Household'
CRM_Utils_Array::value('entity_table', $field) === 'civicrm_contact'
|| $fieldExtends === 'Contact'
|| $fieldExtends === 'Individual'
|| $fieldExtends === 'Organization'
|| $fieldExtends === 'Household'
) {
$paramFieldsExtendContactForEntities[$entityID]['custom_' . CRM_Utils_Array::value('custom_field_id', $field)] = $field['custom_field_id'] ?? NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment