hicknhack-software / redmine_hourglass

New Redmine plugin to enhance the time tracking abilities, reports and REST-API.
Other
78 stars 30 forks source link

Internal Server Error in 10965ms (ActiveRecord: 471.2ms) #130

Closed Girmiti2its closed 4 years ago

Girmiti2its commented 4 years ago

Hi I get the below error on Redmine 4.0.5 version. I tried latest src as well as old releases.

plugins/redmine_hourglass/app/models/hourglass/time_booking_query.rb:40:in block in initialize_available_filters' plugins/redmine_hourglass/app/models/hourglass/time_booking_query.rb:39:ineach' plugins/redmine_hourglass/app/models/hourglass/time_booking_query.rb:39:in initialize_available_filters' app/models/query.rb:615:inavailable_filters' app/models/query.rb:625:in add_filter' plugins/redmine_hourglass/app/controllers/concerns/hourglass_ui/overview.rb:24:inindex_page_list_arguments' plugins/redmine_hourglass/app/controllers/concerns/hourglass_ui/overview.rb:17:in index' lib/redmine/sudo_mode.rb:63:insudo_mode'

Please let me know how to fix this issue.

Thanks in advance.

Girmiti2its commented 4 years ago

I have commented out the below line under funcation def initialize_available_filters

we need fix the last added filters cause redmine fucks up the name

  #available_filters.select { |k, _| k.start_with? 'time_entry' }.each do |_, v|
  #  v[:name] = v[:field].name
  #end

Then internal server Error vanished and i am able to view the tabs from top menu.