[Fix #2015] Make sur all data is initialised for index view

This commit is contained in:
Frederic Merizen 2018-05-31 18:32:13 +02:00
parent 5a699162c5
commit b571f0706c

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