From e5c35d6bf0113b38222b14b35b3567ca10a7f5a4 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 14 Oct 2022 14:50:39 +0100 Subject: [PATCH] Comments --- CRM/Core/ManagedEntities.php | 2 +- CRM/Member/BAO/Membership.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/ManagedEntities.php b/CRM/Core/ManagedEntities.php index 9373d96ff4..d923998692 100644 --- a/CRM/Core/ManagedEntities.php +++ b/CRM/Core/ManagedEntities.php @@ -214,7 +214,7 @@ class CRM_Core_ManagedEntities { $doUpdate = ($policy === 'always'); if ($policy === 'unmodified') { - // If this is not an APIv4 managed entity, the entity_modidfied_date will always be null + // If this is not an APIv4 managed entity, the entity_modified_date will always be null if (!CRM_Core_BAO_Managed::isApi4ManagedType($item['entity_type'])) { Civi::log()->warning('ManagedEntity update policy "unmodified" specified for entity type ' . $item['entity_type'] . ' which is not an APIv4 ManagedEntity. Falling back to policy "always".'); } diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index fba0fbe182..0ad479b801 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -1467,7 +1467,7 @@ WHERE civicrm_membership.contact_id = civicrm_contact.id $params['start_date'] = $membership->start_date; $params['end_date'] = $membership->end_date; - // we should not created contribution record for related contacts, CRM-3371 + // we should not create contribution record for related contacts, CRM-3371 unset($params['contribution_status_id']); //CRM-16857: Do not create multiple line-items for inherited membership through priceset. -- 2.25.1