making export to csv export everything (issue #2947)

changed the api.csv function only