Skip to content

Commit

Permalink
Avoid ‘Can't verify CSRF token authenticity.’ when saving a collection
Browse files Browse the repository at this point in the history
Related to issues
* #1191 - Adding existing works to existing collection fails
* #1489 - Throwing ActionController::InvalidAuthenticityToken when trying to add works to an existing collection
  • Loading branch information
elrayle committed Jan 29, 2018
1 parent 583da6a commit 2a11cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/collections/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

<div class="panel-footer">
<% if @collection.persisted? %>
<%= f.submit t(:'hyrax.collection.select_form.update'), class: 'btn btn-primary', onclick: "confirmation_needed = false;", id: "update_submit", name: "update_collection" %>
<%= f.submit t(:'hyrax.collection.select_form.update'), class: 'btn btn-primary', onclick: "confirmation_needed = false;", id: "update_submit", name: "update_collection", data: { turbolinks: false } %>
<%= link_to t(:'helpers.action.cancel'), hyrax.dashboard_collection_path(@collection), class: 'btn btn-link' %>
<% else %>
<%= f.submit t(:'hyrax.collection.select_form.create'), class: 'btn btn-primary', onclick: "confirmation_needed = false;", id: "create_submit", name: "create_collection" %>
Expand Down

0 comments on commit 2a11cf1

Please sign in to comment.