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:
commit
740a83f665
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue