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

make label consistent with instructions (plain value, format in view)

Markus Kahla2cff4f16c0c
diff --git a/app/helpers/user_consent_helper.rb b/app/helpers/user_consent_helper.rb
index 54709041530..3604c1bfe47 100644
--- a/app/helpers/user_consent_helper.rb
+++ b/app/helpers/user_consent_helper.rb
@@ -52,7 +52,7 @@ module ::UserConsentHelper
end
def consent_checkbox_label(locale: I18n.locale)
- format_text I18n.t('consent.checkbox_label', locale: locale)
+ I18n.t('consent.checkbox_label', locale: locale)
end
def consent_configured?
diff --git a/app/views/account/_user_consent_check.html.erb b/app/views/account/_user_consent_check.html.erb
index e6bad96aba8..7d3e66449d7 100644
--- a/app/views/account/_user_consent_check.html.erb
+++ b/app/views/account/_user_consent_check.html.erb
@@ -8,6 +8,6 @@
<input type="checkbox" name="consent_check" class="form--check-box" required="required" />
</div>
- <%= consent_checkbox_label %>
+ <%= format_text consent_checkbox_label %>
</label>
</section>