}
}
else {
- $select[] = "{$table['alias']}.{$fieldName} as {$tableName}_{$fieldName}";
+ $select[] = "{$field['dbAlias']} as {$tableName}_{$fieldName}";
$this->_columnHeaders["{$tableName}_{$fieldName}"]['title'] = CRM_Utils_Array::value('title', $field);
$this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = CRM_Utils_Array::value('type', $field);
}
}
else {
- $select[] = "{$table['alias']}.{$fieldName} as {$tableName}_{$fieldName}";
+ $select[] = "{$field['dbAlias']} as {$tableName}_{$fieldName}";
$this->_columnHeaders["{$tableName}_{$fieldName}"]['title'] = CRM_Utils_Array::value('title', $field);
$this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = CRM_Utils_Array::value('type', $field);
*
* @return array
*/
- function formRule($fields, $files, $self) {
+ static function formRule($fields, $files, $self) {
$errors = $checkDate = $errorCount = array();
$idMapping = array(
'id' => ts('Contact'),
+ 'exposed_id' => ts('Contact'),
'country_id' => ts('Country'),
'state_province_id' => ts('State/Province'),
'contribution_source' => ts('Contribution Source'),