summaryrefslogtreecommitdiffstats
path: root/app/views/gantts/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/gantts/show.html.erb')
-rw-r--r--app/views/gantts/show.html.erb2
1 files changed, 1 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) %>