Skip to content
Snippets Groups Projects
Commit 0cc98f5e authored by Mayur Jadhav's avatar Mayur Jadhav
Browse files

Worked on RG-161

parent 2a4ac218
No related branches found
No related tags found
No related merge requests found
......@@ -296,14 +296,14 @@ class CRM_Grant_BAO_GrantPayment extends CRM_Grant_DAO_GrantPayment {
$rows = array_merge($headers, $grantPayment);
$fp = fopen($filename, "w");
$line = "";
$line = '';
$comma = "";
$contributionTypes = CRM_Grant_BAO_GrantProgram::contributionTypes();
foreach ($rows as $value) {
if (isset($value['financial_type_id'])) {
$value['financial_type_id'] = $contributionTypes[$value['financial_type_id']];
}
$line .= implode(', ', $value);
$line .= '"'.implode('","', $value).'"';
$line .= "\n";
}
fputs($fp, $line);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment