Commit 97bae885215a1471a0a550ad32dd8b5e7e85d964

Authored by Larissa Reis
1 parent b4badb69

Fixes Cancel button

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 %>
... ...