diff options
author | David Cabo <david@calibea.com> | 2011-09-13 18:37:38 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-09-13 18:37:38 +0200 |
commit | e01e3811e158d50a3e98ef04b1ef7542f5317f45 (patch) | |
tree | 76b309976ab6db937493ac51a38ebae65e00b29a /app/models | |
parent | 928d8fe3d8885a6903db6ab331e3641e33cc0e59 (diff) |
Add support for tags to CSV import, via field "tag_string" (issue #60)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/public_body.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 9e85fb44b..8c34f9e27 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -395,7 +395,7 @@ class PublicBody < ActiveRecord::Base next end - field_list = ['name', 'short_name', 'request_email', 'notes', 'publication_scheme', 'home_page'] + field_list = ['name', 'short_name', 'request_email', 'notes', 'publication_scheme', 'home_page', 'tag_string'] if public_body = bodies_by_name[name] # Existing public body available_locales.each do |locale| @@ -435,7 +435,6 @@ class PublicBody < ActiveRecord::Base unless changed.empty? notes.push "line #{line.to_s}: creating new authority '#{name}' (locale: #{locale}):\n\t#{changed.to_json}" public_body.publication_scheme = public_body.publication_scheme || "" - public_body.tag_string = tag public_body.last_edit_editor = editor public_body.last_edit_comment = 'Created from spreadsheet' public_body.save! |