Commit e2fa14efa8597e47d092768bff2b1697d4747384
1 parent
82978b68
Exists in
master
and in
28 other branches
Return to track when create tool
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/community_track/views/content_viewer/_step_item.rhtml
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | <% if step_item.tool %> |
20 | 20 | <%= link_to step_item.tool.name, step_item.tool.view_url %> |
21 | 21 | <% elsif step_item.allow_create?(user) && step_item.tool_class %> |
22 | - <a href="<%= url_for({:controller => 'cms', :action => 'new', :type => step_item.tool_class, :parent_id => step_item}) %>" class="button icon-new with-text icon-new<%= step_item.tool_class.icon_name %>"><%= _('Create %s' % step_item.tool_class.short_description) %></a> | |
22 | + <a href="<%= url_for({:controller => 'cms', :action => 'new', :type => step_item.tool_class, :parent_id => step_item, :success_back_to => url_for(step_item.parent.view_url)}) %>" class="button icon-new with-text icon-new<%= step_item.tool_class.icon_name %>"><%= _('Create %s' % step_item.tool_class.short_description) %></a> | |
23 | 23 | <% end %> |
24 | 24 | </div> |
25 | 25 | </li> | ... | ... |