Merge pull request #10997 from opf/bug/43120-internal-server-error-when-navigating-to-work-package-page

Bug/43120 internal server error when navigating to work package page
pull/11033/head
Dombi Attila 2 years ago committed by GitHub
commit 3bba14a548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/api/v3/work_packages/work_package_eager_loading_wrapper.rb

@ -92,6 +92,9 @@ module API
.joins(labor_scope.arel.join_sources)
.includes(WorkPackageRepresenter.to_eager_load)
.includes(:status)
.includes(:project)
.includes(:children)
.includes(:custom_values)
.select('work_packages.*')
.select('spent_time_hours.hours')
.select('derived_dates.derived_start_date', 'derived_dates.derived_due_date')

Loading…
Cancel
Save