Enotice fix
authoreileen <emcnaughton@wikimedia.org>
Sun, 27 Sep 2020 22:02:23 +0000 (11:02 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 27 Sep 2020 22:02:23 +0000 (11:02 +1300)
CRM/Member/BAO/MembershipType.php

index c702b83af3aa904b8f9ae24a66678cf3e5ea9645..581f11d686a177c33dbe59af36cdb75e73f82433 100644 (file)
@@ -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.