From 6d7eaeeb7ddea649e3ce5cdac3c654ca1c1e45dd Mon Sep 17 00:00:00 2001 From: Lucas Melo Date: Wed, 30 Oct 2013 14:43:24 -0300 Subject: [PATCH] custom_forms: return to profile main page when cancelling submission --- plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb b/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb index fb180ec..8c60403 100644 --- a/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb +++ b/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb @@ -13,7 +13,7 @@ <%= render :partial => 'shared/form_submission', :locals => {:f => f} %> <% button_bar do %> - <%= submit_button :save, _('Save'), :cancel => {:action => 'index'} %> + <%= submit_button :save, _('Save'), :cancel => {:controller=>:profile, :profile => profile.identifier} %> <% end %> <% end %> <% else %> -- libgit2 0.21.2