dev/report#16 Unreleased regression - fee levels incorrectly show sold out
authoreileen <emcnaughton@wikimedia.org>
Thu, 4 Jul 2019 07:11:14 +0000 (19:11 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 4 Jul 2019 07:11:17 +0000 (19:11 +1200)
CRM/Event/Form/EventFees.php
templates/CRM/Event/Form/Participant.tpl

index f5972943bfdef98855b698d5f467ec6a8f5ccc61..dec7b6fd3c00ddcd2fed1c03baad4c223f08e5f8 100644 (file)
@@ -347,7 +347,7 @@ SELECT  id, html_type
         $form->_pId, 'contribution_id', 'participant_id'
       )
       ) {
-        $form->_online = TRUE;
+        $form->_online = !$form->isBackOffice;
       }
     }
 
index 6ffa6fb72588d54b042ad9bbe45f4ce62f18427f..e62dbf5ae7685feb24ebcffb82e2c59c5e257fcf 100644 (file)
           {if $urlPathVar}
           dataUrl += '&' + '{$urlPathVar}';
           {/if}
+          {if $isBackOffice}
+            dataUrl += '&' + 'is_backoffice=1';
+          {/if}
 
           {literal}
           var eventId = $('[name=event_id], #event_id', $form).val();