From c68338792af042b73b5de52744df3ebdad5f4b9e Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Mon, 2 Apr 2018 16:58:03 -0400 Subject: [PATCH] GL-44 admin price field options on event info page --- CRM/Event/Page/EventInfo.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 2f79010dc9..f781daba86 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -152,6 +152,12 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $displayOpt = CRM_Utils_Array::value('tax_display_settings', $invoiceSettings); $invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings); foreach ($fieldValues['options'] as $optionId => $optionVal) { + if (CRM_Utils_Array::value('visibility_id', $optionVal) != array_search('public', $visibility) && + $adminFieldVisible == FALSE + ) { + continue; + } + $values['feeBlock']['isDisplayAmount'][$fieldCnt] = CRM_Utils_Array::value('is_display_amounts', $fieldValues); if ($invoicing && isset($optionVal['tax_amount'])) { $values['feeBlock']['value'][$fieldCnt] = CRM_Price_BAO_PriceField::getTaxLabel($optionVal, 'amount', $displayOpt, $taxTerm); -- 2.25.1