diff --git a/app/models/map.rb b/app/models/map.rb index 6bc5704e..ddcefb86 100644 --- a/app/models/map.rb +++ b/app/models/map.rb @@ -84,13 +84,14 @@ class Map < ActiveRecord::Base def to_csv(options = {}) CSV.generate(options) do |csv| - csv << ["id", "name", "permission", "user.name"] + csv << ["id", "name", "metacode", "user.name", "permission"] self.topics.each do |topic| csv << [ topic.id, topic.name, - topic.permission, - topic.user.name + topic.metacode.name, + topic.user.name, + topic.permission ] end end diff --git a/app/views/maps/show.xls.erb b/app/views/maps/show.xls.erb index 7c4f8078..f455ff1d 100644 --- a/app/views/maps/show.xls.erb +++ b/app/views/maps/show.xls.erb @@ -2,15 +2,17 @@