# HG changeset patch # User luisf # Date 1315240791 -3600 # Node ID d0fec261c16977733458906e6a2aed581a354efa # Parent 84a746383a5b8556b49da184fbc3ac6209444df7 Fixes Bug #281 (drag to reorder in publiations with one author). diff -r 84a746383a5b -r d0fec261c169 vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Wed Aug 31 18:07:56 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Mon Sep 05 17:39:51 2011 +0100 @@ -11,14 +11,14 @@ -<%- if User.current.allowed_to?(:edit_publication, @project) -%> +<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%> <%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %> <%- end -%>