A couple more minor fixes
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 00:15:11 +0000 (13:15 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 19:19:36 +0000 (08:19 +1300)
tests/phpunit/api/v3/ContributionPageTest.php
xml/templates/message_templates/membership_online_receipt_html.tpl

index ba7adb63853a3ff33845f6d88256a828bc894424..4c3b79d7c6a1be145588d8d20555de7e7d5abf6f 100644 (file)
@@ -425,9 +425,9 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $this->assertEquals($membership['contact_id'], $contributions[$membershipPayment['contribution_id']]['contact_id']);
     $mut->checkMailLog([
       'Gruff',
-      'General Membership',
-      '$0.00',
-      'Membership Fee',
+      'General',
+      'Membership Information',
+      'Membership Type',
     ]);
     $mut->stop();
     $mut->clearMessages();
index 0381eca2005074cd1cf18d833fb99258b4de82bc..9375ed21efc5657333f3bee18618a03653b14f1e 100644 (file)
       </tr>
     {/if}
 
-    {if !empty($receive_date)}
+    {if {contribution.receive_date|boolean}}
       <tr>
         <td {$labelStyle}>
           {ts}Date{/ts}
         </td>
         <td {$valueStyle}>
-          {$receive_date|crmDate}
+          {contribution.receive_date}
         </td>
       </tr>
     {/if}
 
-    {if !empty($is_monetary) and !empty($trxn_id)}
+    {if !empty($trxn_id)}
       <tr>
        <td {$labelStyle}>
         {ts}Transaction #{/ts}