summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-05-08 08:57:31 +0000
committerGo MAEDA <maeda@farend.jp>2019-05-08 08:57:31 +0000
commit391a9469d1c9b72f14114a6019a4c19d499ee389 (patch)
tree2b8bab72c502bd9ce3de568bb1cbdc862f19259b /app
parent86ca2e282a6dcac22bfbf693d1aed0de3a09804b (diff)
downloadredmine-391a9469d1c9b72f14114a6019a4c19d499ee389.tar.gz
redmine-391a9469d1c9b72f14114a6019a4c19d499ee389.zip
Allow a bigger range for the gantt timeline (#14654).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18136 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/gantts/show.html.erb2
-rw-r--r--app/views/settings/_issues.html.erb2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb
index 216c10061..476c86025 100644
--- a/app/views/gantts/show.html.erb
+++ b/app/views/gantts/show.html.erb
@@ -61,7 +61,7 @@
</p>
<p class="buttons">
- <%= number_field_tag 'months', @gantt.months, :min => 1, :max => 24, :autocomplete => false %>
+ <%= number_field_tag 'months', @gantt.months, :min => 1, :max => Setting.gantt_months_limit.to_i, :autocomplete => false %>
<%= l(:label_months_from) %>
<%= select_month(@gantt.month_from, :prefix => "month", :discard_type => true) %>
<%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %>
diff --git a/app/views/settings/_issues.html.erb b/app/views/settings/_issues.html.erb
index 17e8ca99b..b4e50d8e3 100644
--- a/app/views/settings/_issues.html.erb
+++ b/app/views/settings/_issues.html.erb
@@ -22,6 +22,8 @@
<p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
<p><%= setting_text_field :gantt_items_limit, :size => 6 %></p>
+
+<p><%= setting_text_field :gantt_months_limit, :size => 6 %></p>
</div>
<fieldset class="box">