summaryrefslogtreecommitdiffstats
path: root/app/views/issues
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-11-06 09:11:58 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-11-06 09:11:58 +0000
commite9b94a19de65c6548d9f97e82f957d7eaf1729d5 (patch)
tree951df015491aa66c1491f0d1f32df004fa9fc251 /app/views/issues
parent7b9f5af952ba9396b47408234db2a4a4c860948c (diff)
downloadredmine-e9b94a19de65c6548d9f97e82f957d7eaf1729d5.tar.gz
redmine-e9b94a19de65c6548d9f97e82f957d7eaf1729d5.zip
Adds button to "Create and follow" when adding a subtask from the parent issue. Now the user have the following options:
* Create: redirects the user to the parent task (existing behaviour) * Create and follow: redirects the user to the newly created subtask (new behaviour) * Create and add another: redirects the user to new subtask (existing behaviour). (#29076). git-svn-id: http://svn.redmine.org/redmine/trunk@21269 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/new.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb
index 22a174a11..92f6f251a 100644
--- a/app/views/issues/new.html.erb
+++ b/app/views/issues/new.html.erb
@@ -38,6 +38,9 @@
</div>
<%= submit_tag l(:button_create) %>
+ <% if params[:back_url] && params[:issue] && params[:issue][:parent_issue_id] %>
+ <%= submit_tag l(:button_create_and_follow), name: 'follow' %>
+ <% end %>
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
<% end %>