diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index fc9a0d7e..313e1cd9 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -355,7 +355,7 @@ class StatsController < ApplicationController 'id' => all_actions_per_context[i][:id] } } - if size==pie_cutoff + if all_actions_per_context.size > pie_cutoff @actions_per_context[size-1]['name']=t('stats.other_actions_label') @actions_per_context[size-1]['total']=@actions_per_context[size-1]['total'] @actions_per_context[size-1]['id']=-1 diff --git a/config/locales/en.yml b/config/locales/en.yml index f69236b0..bb1f38e9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -321,7 +321,7 @@ en: top10_projects_30days: Top 10 project in past 30 days spread_of_running_actions_for_visible_contexts: Spread of running actions for visible contexts actions_selected_from_week: "Actions selected from week " - spread_of_actions_for_all_context: Spread of actions for all context + spread_of_actions_for_all_context: Spread of actions for all contexts click_to_show_actions_from_week: Click %{link} to show the actions from week %{week} and further. other_actions_label: (others) top10_projects: Top 10 projects