stable

Clone or download

Read-only

Export duck-typed Text 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 same Text type, it will be exported. - Trackers without this field will have an empty string "" for this column. Change-Id: Ib96f05cc6e665496c7baa585d909d7f9fdf65e13

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVRepresentationBuilder.php +21 −12 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/DateValue.php +9 −3 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/FormElementToValueVisitor.php +164 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/TextValue.php +8 −5 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/UserValue.php +8 −8 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/ValueVisitable.php +2 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/SimilarFieldsFormatter.php +15 −7 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SupportedFieldsDao.php +1 −1 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.class.php +2 −1 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/Format/CSVFormatterVisitorTest.php +8 −4 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/SimilarFieldsFormatterTest.php +30 −9 Go to diff View file