From 8ffa7785440a5e67b9bc10d794a27f0d48c88c24 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 24 Jun 2025 11:22:13 +0200 Subject: [PATCH] Remove duplicated breadcrumbs from notifications [SCI-12044] --- app/jobs/protocols/docx_import_job.rb | 4 ---- app/jobs/reports/docx_job.rb | 3 --- app/jobs/reports/pdf_job.rb | 3 --- config/locales/en.yml | 3 --- 4 files changed, 13 deletions(-) diff --git a/app/jobs/protocols/docx_import_job.rb b/app/jobs/protocols/docx_import_job.rb index dccd1a0dd..1868aa430 100644 --- a/app/jobs/protocols/docx_import_job.rb +++ b/app/jobs/protocols/docx_import_job.rb @@ -140,10 +140,6 @@ module Protocols { title: I18n.t('protocols.import_export.import_protocol_notification.title', link: original_file_download_link), - message: "#{I18n.t('protocols.import_export.import_protocol_notification.message')} " \ - "" \ - "#{@protocol.name}", user: @user } ) diff --git a/app/jobs/reports/docx_job.rb b/app/jobs/reports/docx_job.rb index 1165653eb..26ec2ab2c 100644 --- a/app/jobs/reports/docx_job.rb +++ b/app/jobs/reports/docx_job.rb @@ -26,9 +26,6 @@ module Reports DeliveryNotification.send_notifications( { title: I18n.t('projects.reports.index.generation.completed_docx_notification_title'), - message: I18n.t('projects.reports.index.generation.completed_notification_message', - report_link: "#{escape_input(report.name)}", - team_name: escape_input(report.team.name)), subject_id: report_id, subject_class: 'Report', subject_name: report.name, diff --git a/app/jobs/reports/pdf_job.rb b/app/jobs/reports/pdf_job.rb index 71f51c95f..1b0ee3921 100644 --- a/app/jobs/reports/pdf_job.rb +++ b/app/jobs/reports/pdf_job.rb @@ -162,9 +162,6 @@ module Reports DeliveryNotification.send_notifications( { title: I18n.t('projects.reports.index.generation.completed_pdf_notification_title'), - message: I18n.t('projects.reports.index.generation.completed_notification_message', - report_link: "#{escape_input(@report.name)}", - team_name: escape_input(@report.team.name)), subject_id: @report.id, subject_class: 'Report', subject_name: @report.name, diff --git a/config/locales/en.yml b/config/locales/en.yml index d9d52a71c..563dcf3d4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -822,10 +822,8 @@ en: accepted_message: "Your report is successfully added to the generator queue. We will notify you when it is done!" completed_docx_notification_title: "Your report .DOCX was generated successfully." completed_pdf_notification_title: "Your report .PDF was generated successfully." - completed_notification_message: "Report: %{report_link} | Team: %{team_name}" error_docx_notification_title: "Your report .DOCX generation failed. Please try again." error_pdf_notification_title: "Your report .PDF generation failed. Please try again." - error_notification_message: "Report: %{report_link} | Team: %{team_name}" content_generation_error: "Failed to generate report content" file_preview_generation_error: "We were unable to generate preview for this file." modal_delete: @@ -3841,7 +3839,6 @@ en: forms_error: "Form %{form_id} doesn't exist or you don't have access and it won’t be imported." import_protocol_notification: title: "The import process has been successfully completed. You can download original file here: %{link}" - message: "Protocol template:" import_protocol_notification_error: title: "Import failed" message: "We're sorry but the file import process has encountered an error. Please make another attempt, and if the issue persists, please contact support for further assistance."