Merge pull request #2017 from betagouv/frederic/fix-2015-clone-procedure-error-handling

[Fix #2015] Make sur all data is initialised for index view
This commit is contained in:
Paul Chavard 2018-05-31 18:41:03 +02:00 committed by GitHub
commit 740a83f665
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,8 +164,8 @@ class Admin::ProceduresController < AdminController
flash.alert = new_procedure.errors.full_messages
redirect_to new_from_existing_admin_procedures_path
else
flash.now.alert = new_procedure.errors.full_messages
render 'index'
flash.alert = new_procedure.errors.full_messages
redirect_to admin_procedures_path
end
end