# HG changeset patch # User luisf # Date 1352813698 0 # Node ID beea10a56132eaebfc5d94796c4722a794115b19 # Parent 02ee541978797b977f351b1bcc3dd6d2496f39ff# Parent b8ae7b3af25af53b4a8e3717ecc29bb0e725e626 Fixed wrong entry type when "generating" bibtex diff -r 02ee54197879 -r beea10a56132 vendor/plugins/redmine_bibliography/app/models/publication.rb --- a/vendor/plugins/redmine_bibliography/app/models/publication.rb Tue Nov 13 12:10:15 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/models/publication.rb Tue Nov 13 13:34:58 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