Skip to content
Snippets Groups Projects
Commit 985c84bf authored by lcdweb's avatar lcdweb Committed by Eileen McNaughton
Browse files

event#62 expose all price fields to backend form

parent aa66e25d
Branches
Tags
No related merge requests found
......@@ -1658,7 +1658,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
//retrieve custom information
$form->_values = [];
CRM_Event_Form_Registration::initEventFee($form, $event['id']);
CRM_Event_Form_Registration::initEventFee($form, $event['id'], FALSE);
CRM_Event_Form_Registration_Register::buildAmount($form, TRUE, $form->_discountId);
$lineItem = [];
$invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
......
......@@ -456,11 +456,11 @@ WHERE cpf.price_set_id = %1";
$where = "
WHERE price_set_id = %1
AND is_active = 1
AND ( active_on IS NULL OR active_on <= {$currentTime} )
";
$dateSelect = '';
if ($doNotIncludeExpiredFields) {
$dateSelect = "
AND ( active_on IS NULL OR active_on <= {$currentTime} )
AND ( expire_on IS NULL OR expire_on >= {$currentTime} )
";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment