[Fix #2015] Make sur all data is initialised for index view
This commit is contained in:
parent
5a699162c5
commit
b571f0706c
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…
Reference in a new issue