View Issue Details

IDProjectCategoryView StatusLast Update
0012772mantisbtcsvpublic2012-02-27 18:58
Reporterdavethegr8 Assigned Todhx  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.4 
Target Version1.2.5Fixed in Version1.2.5 
Summary0012772: Fatal error: Call to undefined function csv_format_sponsorship_total()
Description

Got this fatal error trying to add the sponsorship column to my csv download.

The global solution is probably a little different, but I added this function to csv_api.php and it displayed like I hoped it would (namely, like a number)

function csv_format_sponsorship_total($value) {
return number_format($value);
}

Tagspatch
Attached Files
download.csv (226 bytes)   
Id,$,Assigned To,Priority,Updated,Summary,Status
0000101,<br />
<b>Fatal error</b>:  Call to undefined function csv_format_sponsorship_total() in <b>/home/dpoole/public_html/mantis/csv_export.php</b> on line <b>116</b><br />
download.csv (226 bytes)   

Relationships

related to 0013958 closeddregad Extra column in csv export when sponsorship_total >= 1000 
related to 0013959 closeddregad Fatal error: Call to undefined function excel_format_sponsorship_total() 

Activities

dhx

dhx

2011-02-26 03:20

reporter   ~0028297

Thanks for the patch, I have committed a slightly updated version (documentation and code styling).

Related Changesets

MantisBT: master-1.2.x a786f9ba

2011-02-26 03:16

davethegr8

Committer: dhx


Details Diff
Fix 0012772: Add function to handle CSV formatting of sponsorship totals

When exporting issues in CSV format a fatal error is thrown if the
export includes sponsorship totals. This is due to a missing
csv_format_sponsorship_total function.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0012772
mod - core/csv_api.php Diff File

MantisBT: master 169b882b

2011-02-26 03:16

davethegr8

Committer: dhx


Details Diff
Fix 0012772: Add function to handle CSV formatting of sponsorship totals

When exporting issues in CSV format a fatal error is thrown if the
export includes sponsorship totals. This is due to a missing
csv_format_sponsorship_total function.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0012772
mod - core/csv_api.php Diff File