Fix setting of misnamed property
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 16 Nov 2023 20:45:10 +0000 (09:45 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 16 Nov 2023 20:45:10 +0000 (09:45 +1300)
The property is ID, not id

CRM/Member/WorkflowMessage/MembershipTrait.php

index 665fd4cb7ea87988d515fedd83100a598f090f3b..30bcd251f6e4154ca1064fdf90c63a6795e87c4a 100644 (file)
@@ -31,7 +31,7 @@ trait CRM_Member_WorkflowMessage_MembershipTrait {
   public function setMembership(array $membership): self {
     $this->membership = $membership;
     if (!empty($membership['id'])) {
-      $this->membershipId = $membership['id'];
+      $this->membershipID = $membership['id'];
     }
     return $this;
   }