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
[48619] Fixed validation message display for new API token
Andreas Pfohl2d81c0e1727e
diff --git a/app/models/token/api.rb b/app/models/token/api.rbindex 56ea3bc8fcf..dd0c3ca147e 100644--- a/app/models/token/api.rb+++ b/app/models/token/api.rb@@ -37,7 +37,7 @@ module Tokenprivatedef token_name_exist- errors.add(:token_name, I18n.t("activerecord.errors.messages.blank")) if data.blank? || data[:name].blank?+ errors.add(:token_name, I18n.t("my.access_token.errors.token_name_blank")) if data.blank? || data[:name].blank?enddef single_value?diff --git a/config/locales/en.yml b/config/locales/en.ymlindex f0451b4e402..0a4772d1608 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -428,6 +428,8 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}my:access_token:+ errors:+ token_name_blank: "Please provide an API token name"new_access_token_dialog_title: "Create new API token"new_access_token_dialog_show_button_text: "API Token"new_access_token_dialog_text_field_placeholder_text: "My API token"@@ -1189,6 +1191,10 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}undeletable_work_packages_attached: "The version cannot be deleted as it has work packages attached to it."status:readonly_default_exlusive: "can not be activated for statuses that are marked default."+ token/api:+ attributes:+ token_name:+ format: "%{message}"template:body: "Please check the following fields:"header: