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
use user locale for background job title
ulferts261408aad247
diff --git a/lib/open_project/locale_helper.rb b/lib/open_project/locale_helper.rbindex 3bba470c21b..3309b22fb91 100644--- a/lib/open_project/locale_helper.rb+++ b/lib/open_project/locale_helper.rb@@ -39,5 +39,7 @@ module OpenProjectI18n.locale = previous_localeTime.zone = previous_zoneend++ module_function :with_locale_forendenddiff --git a/modules/job_status/app/workers/job_status/application_job_with_status.rb b/modules/job_status/app/workers/job_status/application_job_with_status.rbindex 4bce5fe8493..56a2dd82d7a 100644--- a/modules/job_status/app/workers/job_status/application_job_with_status.rb+++ b/modules/job_status/app/workers/job_status/application_job_with_status.rb@@ -74,7 +74,7 @@ module JobStatus# Update properties with the language of the user# to ensure things like the title are correct- User.execute_as(resource.user) do+ OpenProject::LocaleHelper.with_locale_for(resource.user) doresource.attributes = build_status_attributes(args.merge(status: status))end