From ceb3ddfd755e9b1c76a723d879f696f44c669c14 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 15 May 2014 21:28:47 +0530 Subject: [PATCH] CRM-14675 fix - Strict warning: Non-static method CRM_Event_BAO_Event::getTemplateDefaultValues() should not be called statically, assuming $this from incompatible context in CRM_Event_Form_ManageEvent_EventInfo->postProcess() (line 309 https://issues.civicrm.org/jira/browse/CRM-14675 --- CRM/Event/BAO/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 72b569fec7..4aa095d33c 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -2043,7 +2043,7 @@ LEFT JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field * * @return $defaults an array of custom data defaults. */ - public function getTemplateDefaultValues($templateId) { + static function getTemplateDefaultValues($templateId) { $defaults = array(); if (!$templateId) { return $defaults; -- 2.25.1