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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
better attribute name retrieval; closes https://github.com/opf/openproject/pull/17316#discussion_r1878200777
as-op3cd924a3325a
diff --git a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rbindex 23effda5eb6..647daa18814 100644--- a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb+++ b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb@@ -155,11 +155,11 @@ class CostQuery::PDF::TimesheetGeneratordef table_header_columns[- { content: I18n.t(:"activerecord.attributes.time_entry.spent_on"), rowspan: 1 },+ { content: TimeEntry.human_attribute_name(:spent_on), rowspan: 1 },I18n.t(:"activerecord.models.work_package"),with_times_column? ? I18n.t(:"export.timesheet.time") : nil,- I18n.t(:"activerecord.attributes.time_entry.hours"),- I18n.t(:"activerecord.attributes.time_entry.activity")+ TimeEntry.human_attribute_name(:hours),+ TimeEntry.human_attribute_name(:activity)].compactend