mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
Story#109590460 - forgot to update ident_type from XML
This commit is contained in:
parent
b5b0dc7f21
commit
06b37d1ce4
1 changed files with 2 additions and 2 deletions
|
@ -162,12 +162,12 @@ class Epp::Contact < Contact
|
|||
|
||||
if ident_frame && ident_attr_valid?(ident_frame)
|
||||
if ident_country_code.blank? && ident_type.in?(%w(org priv).freeze)
|
||||
at.merge!(ident_country_code: ident_frame.attr('cc'), ident_type: ident_type)
|
||||
at.merge!(ident_country_code: ident_frame.attr('cc'), ident_type: ident_frame.attr('type'))
|
||||
elsif ident_type == "birthday" && ident !=~ /\d{4}-\d{2}-\d{2}/
|
||||
at.merge!(ident: ident_frame.text)
|
||||
at.merge!(ident_country_code: ident_frame.attr('cc')) if ident_frame.attr('cc').present?
|
||||
elsif ident_type.blank? && ident_type.blank?
|
||||
at.merge!(ident_type: ident_type)
|
||||
at.merge!(ident_type: ident_frame.attr('type'))
|
||||
at.merge!(ident_country_code: ident_frame.attr('cc')) if ident_frame.attr('cc').present?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue