diff --git a/app/models/epp/contact.rb b/app/models/epp/contact.rb index af3cc13a9..8e1da8e4b 100644 --- a/app/models/epp/contact.rb +++ b/app/models/epp/contact.rb @@ -132,8 +132,8 @@ class Epp::Contact < Contact '2302' => [ # Object exists [:code, :epp_id_taken] ], - '2304' => [ - [:ident_type, :invalid, { value: { obj: 'ident_type', val: ident_type } }] + '2304' => [ # Object status prohibits operation + [:ident_type, :epp_ident_type_invalid, { value: { obj: 'code', val: code } }] ], '2305' => [ # Association exists [:domains, :exist] diff --git a/config/locales/en.yml b/config/locales/en.yml index ea05adec3..4e915de6a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -52,6 +52,9 @@ en: invalid_EE_identity_format_update: "Ident not in valid Estonian identity format. Please create new contact" invalid_birthday_format: "Ident not in valid birthady format, should be YYYY-MM-DD" invalid_country_code: "Ident country code is not valid, should be in ISO_3166-1 alpha 2 format" + ident_type: + ident_type_invalid: 'Ident type is invalid' + epp_ident_type_invalid: 'Object status prohibits operation: ident_type of contact %{code} is invalid' domains: exist: 'Object association prohibits operation' statuses: @@ -266,7 +269,6 @@ en: unimplemented_command: 'Unimplemented command' domain_exists_but_belongs_to_other_registrar: 'Domain exists but belongs to other registrar' required_ident_attribute_missing: "Required ident attribute missing: %{key}" - ident_type_invalid: 'Ident type is invalid' code: 'Code' value: 'Value'