# HG changeset patch # User luisf # Date 1352813595 0 # Node ID b8ae7b3af25af53b4a8e3717ecc29bb0e725e626 # Parent b0e0ffb43fa184a041d574cc5ba399e340e5a54a Fixed wrong bibtex entries type when converting to bibtex format. diff -r b0e0ffb43fa1 -r b8ae7b3af25a vendor/plugins/redmine_bibliography/app/models/publication.rb --- a/vendor/plugins/redmine_bibliography/app/models/publication.rb Tue Nov 13 13:25:11 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/models/publication.rb Tue Nov 13 13:33:15 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