From 06b37d1ce4835eb1fc5e7d9d6e2853dd36d37b33 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Mon, 14 Dec 2015 16:07:09 +0200 Subject: [PATCH] Story#109590460 - forgot to update ident_type from XML --- app/models/epp/contact.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/epp/contact.rb b/app/models/epp/contact.rb index 91fbf23d1..01787d046 100644 --- a/app/models/epp/contact.rb +++ b/app/models/epp/contact.rb @@ -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