Update CRM/Member/WorkflowMessage/Membership/Membership.php
authorEileen McNaughton <eileen@mcnaughty.com>
Fri, 17 Nov 2023 23:16:18 +0000 (12:16 +1300)
committerGitHub <noreply@github.com>
Fri, 17 Nov 2023 23:16:18 +0000 (12:16 +1300)
Co-authored-by: colemanw <coleman@civicrm.org>
CRM/Member/WorkflowMessage/Membership/Membership.php

index a66a7a46ec52b0bafce6b8c0a4ca95f9e1b71431..f12c594bcf2c354f99b027a5694abbb1931306cc 100644 (file)
@@ -167,7 +167,7 @@ class CRM_Member_WorkflowMessage_Membership_Membership extends WorkflowMessageEx
   private function getPriceSet(): ?array {
     if (!$this->priceSets) {
       $priceSets = (array) PriceSet::get(FALSE)
-        ->addWhere('extends', '=', CRM_Core_Component::getComponentID('CiviMember'))
+        ->addWhere('extends:name', 'CONTAINS', 'CiviMember')
         ->addOrderBy('is_quick_config', 'DESC')
         ->execute()->indexBy('id');
       $priceSetEntities = PriceSetEntity::get(FALSE)