Skip to content

Commit

Permalink
fixed offset in preselection, solved #3
Browse files Browse the repository at this point in the history
  • Loading branch information
akuchinke committed Nov 9, 2017
1 parent d2f62f6 commit e1d8c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/papers/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Author.all,
:id,
:name,
{selected: @paper.author_ids[i], include_blank: '(none)'},
{selected: @paper.author_ids[i-1], include_blank: '(none)'},
{name: "paper[author_ids][]", id: "paper_author_id_" + i.to_s} %>
</p>
<% end %>
Expand Down

0 comments on commit e1d8c4b

Please sign in to comment.