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
[#62657] PDF Export of a single work package in query view does not open dialog
as-op39c3b1110215
diff --git a/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.tsindex 88a02f3050c..2879170802e 100644--- a/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts+++ b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts@@ -120,6 +120,11 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {case 'log_time':this.logTimeForSelectedWorkPackage();break;++ case 'generate_pdf':+ void this.turboRequests.requestStream(String(link));+ break;+case 'relations':void this.$state.go(`${splitViewRoute(this.$state)}.tabs`,diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rbindex 0502654e892..12b3340d608 100644--- a/lib/api/v3/work_packages/work_package_representer.rb+++ b/lib/api/v3/work_packages/work_package_representer.rb@@ -139,7 +139,7 @@ module API{href: generate_pdf_dialog_work_package_path(id: represented.id),- type: "text/html",+ type: "text/vnd.turbo-stream.html",title: "Generate PDF"}end