X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FPage%2FEventInfo.php;h=507d23ead656da8522f899f9f41c96a135234269;hb=e34e697967b00afe2802510acd6bb91c0fc9f1a1;hp=3bab4a99c0f67062583dee36a3c4a0bc1d3c3e3d;hpb=85603b5f73cfed7ba0ad46d7a858ce5775755006;p=civicrm-core.git diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 3bab4a99c0..507d23ead6 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -1,7 +1,7 @@ get('contribution_invoice_settings'); $taxTerm = CRM_Utils_Array::value('tax_term', $invoiceSettings); $displayOpt = CRM_Utils_Array::value('tax_display_settings', $invoiceSettings); $invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings); @@ -186,7 +186,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { //retrieve custom field information $groupTree = CRM_Core_BAO_CustomGroup::getTree('Event', $this, $this->_id, 0, $values['event']['event_type_id']); - CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree); + CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, FALSE, NULL, NULL, NULL, $this->_id); $this->assign('action', CRM_Core_Action::VIEW); //To show the event location on maps directly on event info page $locations = CRM_Event_BAO_Event::getMapInfo($this->_id); @@ -287,10 +287,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { } // check if we're in shopping cart mode for events - $enable_cart = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::EVENT_PREFERENCES_NAME, - 'enable_cart' - ); - + $enable_cart = Civi::settings()->get('enable_cart'); if ($enable_cart) { $link = CRM_Event_Cart_BAO_EventInCart::get_registration_link($this->_id); $registerText = $link['label']; @@ -357,7 +354,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $this->assign('location', $values['location']); if (CRM_Core_Permission::check('access CiviEvent')) { - $enableCart = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::EVENT_PREFERENCES_NAME, 'enable_cart'); + $enableCart = Civi::settings()->get('enable_cart'); $this->assign('manageEventLinks', CRM_Event_Page_ManageEvent::tabs($enableCart)); }