Commit 6d7eaeeb7ddea649e3ce5cdac3c654ca1c1e45dd

Authored by Lucas Melo
1 parent ce0d03ab

custom_forms: return to profile main page when cancelling submission

AI2870
plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
... ... @@ -13,7 +13,7 @@
13 13 <%= render :partial => 'shared/form_submission', :locals => {:f => f} %>
14 14  
15 15 <% button_bar do %>
16   - <%= submit_button :save, _('Save'), :cancel => {:action => 'index'} %>
  16 + <%= submit_button :save, _('Save'), :cancel => {:controller=>:profile, :profile => profile.identifier} %>
17 17 <% end %>
18 18 <% end %>
19 19 <% else %>
... ...