# HG changeset patch # User luisf # Date 1352813810 0 # Node ID 72294a3b06474ecd7ec954e0d209c58d96a4f0b6 # Parent b42553f6df71ec5b2edced0dea95a6fa1b8e5ac3# Parent b8ae7b3af25af53b4a8e3717ecc29bb0e725e626 Merge diff -r b42553f6df71 -r 72294a3b0647 vendor/plugins/redmine_bibliography/app/models/publication.rb --- a/vendor/plugins/redmine_bibliography/app/models/publication.rb Tue Nov 13 13:23:29 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/models/publication.rb Tue Nov 13 13:36:50 2012 +0000 @@ -69,13 +69,12 @@ bib.author = self.print_bibtex_author_names bib.title = self.title - self.bibtex_entry.attributes.keys.sort.each do |key| value = self.bibtex_entry.attributes[key].to_s next if key == 'id' or key == 'publication_id' or value == "" - if key == "entry_type" - bib.type = self.bibtex_entry.entry_type_label + if key == "entry_type" + bib.type = BibtexEntryType.find(self.bibtex_entry.entry_type).name else bib[key.to_sym] = value end