summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-29 15:10:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-29 15:10:59 +0000
commit30d65829b859c934c266b0862b30aa4b57d11677 (patch)
tree826b6103151bd967edfae19b131acfad75e866a8 /app/views
parent749d703881c6f0c44db6724d7606189aaf69eb6a (diff)
downloadredmine-30d65829b859c934c266b0862b30aa4b57d11677.tar.gz
redmine-30d65829b859c934c266b0862b30aa4b57d11677.zip
Configurable behavour for linking issues on copy (#18500).
git-svn-id: http://svn.redmine.org/redmine/trunk@13668 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/bulk_edit.html.erb8
-rw-r--r--app/views/issues/new.html.erb6
-rw-r--r--app/views/settings/_issues.html.erb2
3 files changed, 16 insertions, 0 deletions
diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb
index dfd76371e..c16f48cbc 100644
--- a/app/views/issues/bulk_edit.html.erb
+++ b/app/views/issues/bulk_edit.html.erb
@@ -97,6 +97,14 @@
</p>
<% end %>
+<% if @copy && Setting.link_copied_issue == 'ask' %>
+<p>
+ <label for='link_copy'><%= l(:label_link_copied_issue) %></label>
+ <%= hidden_field_tag 'link_copy', '0' %>
+ <%= check_box_tag 'link_copy', '1', params[:link_copy] != 0 %>
+</p>
+<% end %>
+
<% if @copy && @attachments_present %>
<%= hidden_field_tag 'copy_attachments', '0' %>
<p>
diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb
index 40dae18b2..206df8d18 100644
--- a/app/views/issues/new.html.erb
+++ b/app/views/issues/new.html.erb
@@ -11,6 +11,12 @@
<%= render :partial => 'issues/form', :locals => {:f => f} %>
</div>
+ <% if @copy_from && Setting.link_copied_issue == 'ask' %>
+ <p>
+ <label for="link_copy"><%= l(:label_link_copied_issue) %></label>
+ <%= check_box_tag 'link_copy', '1', @link_copy %>
+ </p>
+ <% end %>
<% if @copy_from && @copy_from.attachments.any? %>
<p>
<label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
diff --git a/app/views/settings/_issues.html.erb b/app/views/settings/_issues.html.erb
index fac6d6dea..c1e802238 100644
--- a/app/views/settings/_issues.html.erb
+++ b/app/views/settings/_issues.html.erb
@@ -3,6 +3,8 @@
<div class="box tabular settings">
<p><%= setting_check_box :cross_project_issue_relations %></p>
+<p><%= setting_select :link_copied_issue, link_copied_issue_options %></p>
+
<p><%= setting_select :cross_project_subtasks, cross_project_subtasks_options %></p>
<p><%= setting_check_box :issue_group_assignment %></p>