else {
CRM_Utils_Hook::post('create', 'Event', $event->id, $event);
}
- if ($financialTypeId && CRM_Utils_Array::value('financial_type_id', $params)
+ if ($financialTypeId && CRM_Utils_Array::value('financial_type_id', $params)
&& $financialTypeId != $params['financial_type_id']) {
- CRM_Price_BAO_FieldValue::updateFinancialType($params['id'], 'civicrm_event', $params['financial_type_id']);
+ CRM_Price_BAO_PriceFieldValue::updateFinancialType($params['id'], 'civicrm_event', $params['financial_type_id']);
}
return $result;
}