From: eileen Date: Sun, 27 Sep 2020 22:02:23 +0000 (+1300) Subject: Enotice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2d227fa36e38ffce7e639d557bef5856323b1534;p=civicrm-core.git Enotice fix --- diff --git a/CRM/Member/BAO/MembershipType.php b/CRM/Member/BAO/MembershipType.php index c702b83af3..581f11d686 100644 --- a/CRM/Member/BAO/MembershipType.php +++ b/CRM/Member/BAO/MembershipType.php @@ -823,7 +823,7 @@ class CRM_Member_BAO_MembershipType extends CRM_Member_DAO_MembershipType { if (!Civi::cache('metadata')->has($cacheString)) { $types = civicrm_api3('MembershipType', 'get', ['options' => ['limit' => 0, 'sort' => 'weight']])['values']; $taxRates = CRM_Core_PseudoConstant::getTaxRates(); - $keys = ['description', 'relationship_type_id', 'relationship_direction', 'max_related']; + $keys = ['description', 'relationship_type_id', 'relationship_direction', 'max_related', 'auto_renew']; // In order to avoid down-stream e-notices we undo api v3 filtering of NULL values. This is covered // in Unit tests & ideally we might switch to apiv4 but I would argue we should build caching // of metadata entities like this directly into apiv4.