}
if (!empty($query->_returnProperties['pledge_financial_type'])) {
- $query->_select['pledge_financial_type'] = "(SELECT civicrm_financial_type.name FROM civicrm_financial_type WHERE civicrm_financial_type.id = civicrm_pledge.financial_type_id) as pledge_financial_type";
+ $query->_select['pledge_financial_type'] = "(SELECT civicrm_financial_type.name FROM civicrm_financial_type WHERE civicrm_financial_type.id = civicrm_pledge.financial_type_id) as pledge_financial_type";
$query->_element['pledge_financial_type'] = 1;
$query->_tables['civicrm_pledge'] = $query->_whereTables['civicrm_pledge'] = 1;
}
}
}
else {
- if (!empty($value) ) {
+ if (!empty($value)) {
$names[] = $statusValues[$value];
}
}
}
}
else {
- if (!empty($value) ) {
+ if (!empty($value)) {
$names[] = $statusValues[$value];
}
}
$value,
'Integer'
);
- $query->_qill[$grouping][] = ts( 'Financial Type - %1', array( 1 => $type ) );
+ $query->_qill[$grouping][] = ts('Financial Type - %1', array(1 => $type));
$query->_tables['civicrm_pledge'] = $query->_whereTables['civicrm_pledge'] = 1;
return;
break;
case 'pledge_financial_type':
- $from .= " $side JOIN civicrm_financial_type ON civicrm_pledge.financial_type_id = civicrm_financial_type.id ";
+ $from .= " $side JOIN civicrm_financial_type ON civicrm_pledge.financial_type_id = civicrm_financial_type.id ";
break;
case 'civicrm_pledge_payment':
/**
* Ideally this function should include fields that are displayed in the selector
*/
- static function defaultReturnProperties($mode,
+ static function defaultReturnProperties(
+ $mode,
$includeCustomFields = TRUE
) {
$properties = NULL;
$form->addGroup($paymentStatus, 'pledge_payment_status_id', ts('Pledge Payment Status'));
$form->add('select', 'pledge_financial_type_id',
- ts( 'Financial Type' ),
+ ts('Financial Type'),
array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::financialType(),
FALSE, array('class' => 'crm-select2')
);
* @param $row
* @param int $id
*/
- public static function searchAction(&$row, $id) {}
+ public static function searchAction(&$row, $id) {
+ }
/**
* @param $tables
}
}
}
-