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
set the format of error messages for assignee attribute
bsatarnejad3c4a40fa6957
diff --git a/app/contracts/work_packages/base_contract.rb b/app/contracts/work_packages/base_contract.rbindex 194be99ee56..90e537a41d8 100644--- a/app/contracts/work_packages/base_contract.rb+++ b/app/contracts/work_packages/base_contract.rb@@ -325,7 +325,7 @@ module WorkPackagesreturn if id.nil? || model.changed.exclude?(id_attribute)unless principal_visible?(id, list)- errors.add :base,+ errors.add attribute,I18n.t('api_v3.errors.validation.invalid_user_assigned_to_work_package',property: I18n.t("attributes.#{attribute}"))enddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex ffee2501e25..04aa47e49e8 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -806,6 +806,8 @@ en:work_package:is_not_a_valid_target_for_time_entries: "Work package #%{id} is not a valid target for reassigning the time entries."attributes:+ assigned_to:+ format: "%{message}"due_date:not_start_date: "is not on start date, although this is required for milestones."duration: