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
[#61692] replace validation message
Eric Schuberte21f8cb9ad7d
diff --git a/app/contracts/types/base_contract.rb b/app/contracts/types/base_contract.rbindex bdf4636c47e..17f17cc27da 100644--- a/app/contracts/types/base_contract.rb+++ b/app/contracts/types/base_contract.rb@@ -102,7 +102,7 @@ module Typesendend- def validate_subject_generation_pattern # rubocop:disable Metrics/AbcSize+ def validate_subject_generation_patternblueprint = model.patterns.subject&.blueprintreturn if blueprint.nil?@@ -114,7 +114,7 @@ module Typesendif invalid_tokens.any?- errors.add(:patterns, :invalid_tokens, tokens: invalid_tokens.join(", "))+ errors.add(:patterns, :invalid_tokens)endenddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex 694209a1133..249ce519f74 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1518,7 +1518,7 @@ en:query_invalid: "The embedded query '%{group}' is invalid: %{details}"group_without_name: "Unnamed groups are not allowed."patterns:- invalid_tokens: "The pattern contains invalid tokens: %{tokens}"+ invalid_tokens: "One or more attributes inside the field are not valid. Please, fix the attributes before saving."user:attributes:base: