From 529d773e92cf7518648536ed4078f9cedc69218b Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Fri, 19 Jul 2013 18:37:32 +0530 Subject: [PATCH] notice fixes --- CRM/Export/Form/Select.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Export/Form/Select.php b/CRM/Export/Form/Select.php index 5f259688ec..678e3f9f9f 100644 --- a/CRM/Export/Form/Select.php +++ b/CRM/Export/Form/Select.php @@ -105,7 +105,8 @@ class CRM_Export_Form_Select extends CRM_Core_Form { } else { // we need to determine component export - $stateMachine = &$this->controller->getStateMachine(); + $stateMachine = $this->controller->getStateMachine(); + $formName = CRM_Utils_System::getClassName($stateMachine); $componentName = explode('_', $formName); $components = array('Contribute', 'Member', 'Event', 'Pledge', 'Case', 'Grant', 'Activity'); @@ -316,7 +317,7 @@ FROM {$this->_componentTable} * @access public * @static */ - public function formRule($params, $files, $self) { + static public function formRule($params, $files, $self) { $errors = array(); if (CRM_Utils_Array::value('mergeOption', $params) == self::EXPORT_MERGE_SAME_ADDRESS && -- 2.25.1