Commit 6d7eaeeb7ddea649e3ce5cdac3c654ca1c1e45dd
1 parent
ce0d03ab
Exists in
master
and in
28 other branches
custom_forms: return to profile main page when cancelling submission
AI2870
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | <%= render :partial => 'shared/form_submission', :locals => {:f => f} %> | 13 | <%= render :partial => 'shared/form_submission', :locals => {:f => f} %> |
14 | 14 | ||
15 | <% button_bar do %> | 15 | <% button_bar do %> |
16 | - <%= submit_button :save, _('Save'), :cancel => {:action => 'index'} %> | 16 | + <%= submit_button :save, _('Save'), :cancel => {:controller=>:profile, :profile => profile.identifier} %> |
17 | <% end %> | 17 | <% end %> |
18 | <% end %> | 18 | <% end %> |
19 | <% else %> | 19 | <% else %> |