$ufField->field_name = $params['field_name'][1];
if ($params['field_name'][1] == 'url') {
$ufField->website_type_id = CRM_Utils_Array::value(2, $params['field_name'], NULL);
- }
+ }
else {
$ufField->location_type_id = (CRM_Utils_Array::value(2, $params['field_name'])) ? $params['field_name'][2] : 'NULL';
}
$locationTypeId = NULL;
if ($params['field_name'][1] == 'url') {
$ufField->website_type_id = CRM_Utils_Array::value(2, $params['field_name']);
- }
+ }
else {
$locationTypeId = CRM_Utils_Array::value(2, $params['field_name']);
$ufField->website_type_id = NULL;
$billing_id = CRM_Core_BAO_LocationType::getBilling();
list($prefixName, $index) = CRM_Utils_System::explode('-', $key, 2);
- $profileFields = civicrm_api3('uf_field', 'get', array_merge($profileFilter, array('is_active' => 1, 'return' => 'field_name')));
+ $profileFields = civicrm_api3('uf_field', 'get', array_merge($profileFilter,
+ array('is_active' => 1, 'return' => 'field_name', 'options' => array(
+ 'limit' => 0,
+ ))
+ ));
//check for valid fields ( fields that are present in billing block )
$validBillingFields = array(
'first_name',
'name' => 'contribution_note',
'title' => ts('Contribution Note'),
);
- if ($gid && CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $gid, 'name') == 'contribution_batch_entry') {
- $fields['Contribution'] = array_merge($contribFields, self::getContribBatchEntryFields());
- }
- else {
- $fields['Contribution'] = $contribFields;
- }
+ $fields['Contribution'] = array_merge($contribFields, self::getContribBatchEntryFields());
}
}
'name' => 'soft_credit',
'title' => ts('Soft Credit'),
),
+ 'soft_credit_type' => array(
+ 'name' => 'soft_credit_type',
+ 'title' => ts('Soft Credit Type'),
+ ),
'product_name' => array(
'name' => 'product_name',
'title' => ts('Premiums'),