Skip to content

Commit

Permalink
omit doi-name validation on updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Apr 13, 2019
1 parent 0e35199 commit 0ffa5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def update
@doi.assign_attributes(safe_params.slice(:client_id))
else
authorize! :update, @doi
@doi.assign_attributes(safe_params.except(:doi, :client_id))
@doi.assign_attributes(safe_params.except(:doi, :client_id).merge(exists: exists))
end
else
doi_id = validate_doi(params[:id])
Expand Down

0 comments on commit 0ffa5dd

Please sign in to comment.