Skip to content

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

Remove redundant label from more files

Mir Bhatia213a9f81be00
diff --git a/lib_static/plugins/acts_as_journalized/lib/journal_formatter/base.rb b/lib_static/plugins/acts_as_journalized/lib/journal_formatter/base.rb
index 0aba3d8c9bf..46eacf46d62 100644
--- a/lib_static/plugins/acts_as_journalized/lib/journal_formatter/base.rb
+++ b/lib_static/plugins/acts_as_journalized/lib/journal_formatter/base.rb
@@ -86,7 +86,7 @@ module JournalFormatter
linebreak = should_linebreak?(old_value.to_s, value.to_s)
if options[:html]
- I18n.t(:text_journal_changed_html,
+ I18n.t(:text_journal_changed_plain,
label:,
linebreak: linebreak ? "<br/>".html_safe : '',
old: old_value,
diff --git a/spec/lib/journal_formatter/custom_field_spec.rb b/spec/lib/journal_formatter/custom_field_spec.rb
index dadf7711c53..a63f5db9312 100644
--- a/spec/lib/journal_formatter/custom_field_spec.rb
+++ b/spec/lib/journal_formatter/custom_field_spec.rb
@@ -133,7 +133,7 @@ describe OpenProject::JournalFormatter::CustomField do
let(:new_formatted_value) { format_value(values.last, custom_field) }
let(:expected) do
- I18n.t(:text_journal_changed_html,
+ I18n.t(:text_journal_changed_plain,
label: "<strong>#{custom_field.name}</strong>",
linebreak: '',
old: "<i>#{old_formatted_value}</i>",
@@ -217,7 +217,7 @@ describe OpenProject::JournalFormatter::CustomField do
let(:key) { 'custom_values0' }
let(:expected) do
- I18n.t(:text_journal_changed_html,
+ I18n.t(:text_journal_changed_plain,
label: "<strong>#{I18n.t(:label_deleted_custom_field)}</strong>",
linebreak: '',
old: "<i>#{values.first}</i>",
@@ -295,7 +295,7 @@ describe OpenProject::JournalFormatter::CustomField do
let(:values) { %w[1,2 3,4] }
let(:expected) do
- I18n.t(:text_journal_changed_html,
+ I18n.t(:text_journal_changed_plain,
label: "<strong>#{custom_field.name}</strong>",
linebreak: '',
old: "<i>cf 1, cf 2</i>",
@@ -310,7 +310,7 @@ describe OpenProject::JournalFormatter::CustomField do
let(:new_custom_option_names) { [[4, 'cf 4']] }
let(:expected) do
- I18n.t(:text_journal_changed_html,
+ I18n.t(:text_journal_changed_plain,
label: "<strong>#{custom_field.name}</strong>",
linebreak: '',
old: "<i>cf 1, cf 2</i>",