stable

Clone or download

Read-only

Export duck-typed int and float fields

Part of story #12345 export results to csv How to test: - Export CSV from a cross-tracker widget with a saved and non-empty report. - When there is a field in at least two trackers with the same shortname and the exact same type (integer or float), it will be exported. - Trackers without this field will have an empty string "" for this column. Change-Id: Ia5ecc2ff1d747609b0095abe525a239f6c1eb524

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/CSVFormatterVisitor.php +5 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/FormElementToValueVisitor.php +2 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/FormatterVisitor.php +5 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/NumericValue.php +45 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SupportedFieldsDao.php +1 −1 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/Format/CSVFormatterVisitorTest.php +22 −14 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/SimilarFieldsFormatterTest.php +26 −5 Go to diff View file