Fix regression on line item display on thank you
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 05:15:13 +0000 (18:15 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 05:15:13 +0000 (18:15 +1300)
CRM/Contribute/Form/Contribution/ThankYou.php

index a8d7594e29ee5a6aab15ec009801534a497cac48..ee339475c7a4e326ee409b492946a4d9396255ed 100644 (file)
@@ -97,7 +97,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
     $this->assign('getTaxDetails', (bool) $this->order->getTotalTaxAmount());
     $this->assign('totalTaxAmount', $this->order->getTotalTaxAmount());
     $this->assign('taxTerm', \Civi::settings()->get('tax_term'));
-    $this->assign('lineItem', $this->isQuickConfig() ? NULL : $this->order->getLineItems());
+    $this->assign('lineItem', $this->isQuickConfig() ? NULL : [$this->getPriceSetID() => $this->order->getLineItems()]);
     if (!$this->isQuickConfig()) {
       if (is_array($membershipTypeID)) {
         $membershipTypeID = current($membershipTypeID);