# HG changeset patch # User luisf # Date 1381342642 -3600 # Node ID a9cfc6dcfb8331242ad04c93d2c813c114598aae # Parent 2599a11ef11a7c2ceefdde909203cfb63993a477 Addresses Bug #764. Removes unused controller instanced variable. diff -r 2599a11ef11a -r a9cfc6dcfb83 plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Oct 08 17:06:37 2013 +0100 +++ b/plugins/redmine_bibliography/app/controllers/publications_controller.rb Wed Oct 09 19:17:22 2013 +0100 @@ -82,10 +82,8 @@ def edit find_project_by_project_id unless params[:project_id].nil? - @edit_view = true; @publication = Publication.find(params[:id]) @selected_bibtex_entry_type_id = @publication.bibtex_entry.entry_type - @bibtype_fields = BibtexEntryType.fields(@selected_bibtex_entry_type_id) end diff -r 2599a11ef11a -r a9cfc6dcfb83 plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Oct 08 17:06:37 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Wed Oct 09 19:17:22 2013 +0100 @@ -7,7 +7,11 @@

<%= f.check_box :search_author_tie, :label => '' -%> - Not associated with any SoundSoftware site user. + <% unless f.object.search_author_tie %> + Not associated with any SoundSoftware site user. + <% else %> + Associated with <%= render_authorship_link(f.object.search_author_class, f.object.search_author_id) -%>. + <% end %>

<%= f.hidden_field :search_author_class -%>