From: eileen Date: Thu, 4 Jul 2019 07:11:14 +0000 (+1200) Subject: dev/report#16 Unreleased regression - fee levels incorrectly show sold out X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ce44b3916764832ef5ed27f5ef60ef264e0512fc;p=civicrm-core.git dev/report#16 Unreleased regression - fee levels incorrectly show sold out --- 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();