diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/gantts/show.html.erb | 2 | ||||
-rw-r--r-- | app/views/settings/_issues.html.erb | 2 |
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"> |