# HG changeset patch # User luisf # Date 1380545417 -3600 # Node ID 6106c49c5f50263f3a286cb0519d2a4fad537640 # Parent 92d854be33d522a77d776ae194031fd0795428d6 fixed bug when associating author and user. diff -r 92d854be33d5 -r 6106c49c5f50 plugins/redmine_bibliography/app/models/authorship.rb --- a/plugins/redmine_bibliography/app/models/authorship.rb Sat Sep 28 16:22:56 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/authorship.rb Mon Sep 30 13:50:17 2013 +0100 @@ -128,7 +128,8 @@ # create new author and update user author = Author.new author.save - user << author + user.author = author + user.save else logger.error { "found an author!" } author = user.author