Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove remnants of debug_fields

Oliver Günther7eb9d1797ff6
diff --git a/modules/reporting/app/helpers/reporting_helper.rb b/modules/reporting/app/helpers/reporting_helper.rb
index 9cafe602998..46af2f59381 100644
--- a/modules/reporting/app/helpers/reporting_helper.rb
+++ b/modules/reporting/app/helpers/reporting_helper.rb
@@ -68,10 +68,6 @@ module ReportingHelper
end
end
- def debug_fields(result, prefix = ", ")
- prefix << result.fields.inspect << ", " << result.important_fields.inspect << ", " << result.key.inspect if params[:debug]
- end
-
def month_name(index)
Date::MONTHNAMES[index].to_s
end
diff --git a/modules/reporting/lib/widget/table.rb b/modules/reporting/lib/widget/table.rb
index 8d0d1a8e34a..4274e61a502 100644
--- a/modules/reporting/lib/widget/table.rb
+++ b/modules/reporting/lib/widget/table.rb
@@ -30,7 +30,7 @@ class Widget::Table < Widget::Base
extend Report::InheritedAttribute
include ReportingHelper
- attr_accessor :debug, :fields, :mapping
+ attr_accessor :fields, :mapping
def initialize(query)
raise ArgumentError, "Tables only work on CostQuery!" unless query.is_a? CostQuery
diff --git a/modules/reporting/lib/widget/table/report_table.rb b/modules/reporting/lib/widget/table/report_table.rb
index 4b39acf562d..77a0b26285a 100644
--- a/modules/reporting/lib/widget/table/report_table.rb
+++ b/modules/reporting/lib/widget/table/report_table.rb
@@ -105,7 +105,8 @@ class Widget::Table::ReportTable < Widget::Table
# rubocop:disable Metrics/AbcSize
def render_thead
- return if walker.headers && walker.headers_empty?
+ walker.headers
+ return if walker.headers_empty?
write "<thead>".html_safe
walker.headers do |list, first, first_in_col, last_in_col|