),
),
),
+ )
+ + $this->getAddressColumns()
+ + array(
'civicrm_contribution' =>
array(
'dao' => 'CRM_Contribute_DAO_Contribution',
}
else {
$select[] = "{$field['dbAlias']} as {$tableName}_{$fieldName}";
- $this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = $field['type'];
+ // $field['type'] is not always set. Use string type as default if not set.
+ $this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = isset($field['type']) ? $field['type'] : 2;
$this->_columnHeaders["{$tableName}_{$fieldName}"]['title'] = $field['title'];
}
}
}
}
}
+
$this->_select = " SELECT * FROM ( SELECT " . implode(', ', $select) . " ";
}
ON {$this->_aliases['civicrm_contact']}.id = {$this->_aliases['civicrm_phone']}.contact_id AND
{$this->_aliases['civicrm_phone']}.is_primary = 1
";
+ $this->addAddressFromClause();
}
function where() {
$rows[$rowNum]['civicrm_contact_display_name_link'] = $url;
$entryFound = TRUE;
}
+ $entryFound = $this->alterDisplayAddressFields($row, $rows, $rowNum, 'contribute/detail', 'List all contribution(s)') ? TRUE : $entryFound;
// skip looking further in rows, if first row itself doesn't
// have the column we need