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
show "job not found error" the same way as other errors; resolves https://github.com/opf/openproject/pull/16364#pullrequestreview-2253960591
as-opfde8c54923d3
diff --git a/modules/job_status/app/components/job_status/dialog/body_component.rb b/modules/job_status/app/components/job_status/dialog/body_component.rbindex 7a3b4a17a13..bd03fb83d10 100644--- a/modules/job_status/app/components/job_status/dialog/body_component.rb+++ b/modules/job_status/app/components/job_status/dialog/body_component.rb@@ -102,14 +102,14 @@ module JobStatusenddef title- return I18n.t("job_status_dialog.generic_messages.not_found") if job.nil?-- return I18n.t("job_status_dialog.errors") if has_error?+ return I18n.t("job_status_dialog.errors") if job.nil? || has_error?job.message || job.payload&.dig("title") || I18n.t("job_status_dialog.title")enddef message+ return I18n.t("job_status_dialog.generic_messages.not_found") if job.nil?+return I18n.t("job_status_dialog.generic_messages.#{job.status}") if pending?return job.message if has_error?