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
[38078] Fix bulk controller not setting send_notifications
Oliver Güntherbcdc67cd52af
diff --git a/app/helpers/work_packages_helper.rb b/app/helpers/work_packages_helper.rbindex a6cc0782db6..875e0d359bb 100644--- a/app/helpers/work_packages_helper.rb+++ b/app/helpers/work_packages_helper.rb@@ -173,7 +173,7 @@ module WorkPackagesHelperchecked,class: 'form--check-box')boxes- end) + I18n.t(:label_notify_member_plural)+ end) + I18n.t('notifications.send_notifications')endenddiff --git a/app/services/work_packages/bulk/update_service.rb b/app/services/work_packages/bulk/update_service.rbindex 21cf3ea157a..e4d5a8f982a 100644--- a/app/services/work_packages/bulk/update_service.rb+++ b/app/services/work_packages/bulk/update_service.rb@@ -43,7 +43,7 @@ module WorkPackagesdef call(params:)self.permitted_params = PermittedParams.new(params, user)- in_user_context do+ in_user_context(params[:send_notification] == '1') dobulk_update(params)endend@@ -69,7 +69,7 @@ module WorkPackagesservice_call = WorkPackages::UpdateService.new(user: user, model: work_package)- .call(**attributes.merge(send_notifications: params[:send_notification] == '1').symbolize_keys)+ .call(**attributes.symbolize_keys)if service_call.success?saved << work_package.iddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex 1b6611a1595..cca4b6a30d9 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1374,6 +1374,7 @@ en:indefinite_expiration: "Never"notifications:+ send_notifications: "Send notifications for this action"work_packages:subject:assigned: "You have been assigned to %{work_package}"@@ -1684,7 +1685,6 @@ en:label_none_parentheses: "(none)"label_not_contains: "doesn't contain"label_not_equals: "is not"- label_notify_member_plural: "Email updates"label_on: "on"label_open_menu: "Open menu"label_open_work_packages: "open"