From 0ffa5ddea699544fb7703bd21cdea35cb194aa3e Mon Sep 17 00:00:00 2001 From: Kristian Garza Date: Sat, 13 Apr 2019 23:04:56 +0200 Subject: [PATCH] omit doi-name validation on updates https://github.com/datacite/bracco/issues/189 --- app/controllers/dois_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index 05549c63a..28b556a27 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -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])