From ce44b3916764832ef5ed27f5ef60ef264e0512fc Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 4 Jul 2019 19:11:14 +1200 Subject: [PATCH] dev/report#16 Unreleased regression - fee levels incorrectly show sold out --- CRM/Event/Form/EventFees.php | 2 +- templates/CRM/Event/Form/Participant.tpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index f5972943bf..dec7b6fd3c 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -347,7 +347,7 @@ SELECT id, html_type $form->_pId, 'contribution_id', 'participant_id' ) ) { - $form->_online = TRUE; + $form->_online = !$form->isBackOffice; } } diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index 6ffa6fb725..e62dbf5ae7 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -395,6 +395,9 @@ {if $urlPathVar} dataUrl += '&' + '{$urlPathVar}'; {/if} + {if $isBackOffice} + dataUrl += '&' + 'is_backoffice=1'; + {/if} {literal} var eventId = $('[name=event_id], #event_id', $form).val(); -- 2.25.1