From 0696700e5d8fc86cf8a22dd3c17453476a300598 Mon Sep 17 00:00:00 2001 From: Stas Date: Tue, 12 Apr 2016 22:32:32 +0300 Subject: [PATCH] 116209751-modification_for_update --- app/models/depp/domain.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/models/depp/domain.rb b/app/models/depp/domain.rb index 05fd2fef9..c4889b062 100644 --- a/app/models/depp/domain.rb +++ b/app/models/depp/domain.rb @@ -187,12 +187,6 @@ module Depp } end - if domain_params[:verified].present? - custom_params[:_anonymus] << { - registrant_verified: { value: 'yes' } - } - end - if domain_params[:reserved_pw].present? custom_params[:_anonymus] << { reserved: { pw: { value: domain_params[:reserved_pw] } } } end @@ -223,6 +217,11 @@ module Depp chg = [{ registrant: { value: domain_params[:registrant] } }] end + if domain_params[:verified].present? + chg.push({ registrant_verified: 'yes'}) if chg.present? + chg = [{ registrant_verified: 'yes'}] if chg.nil? + end + add_arr = nil if add_arr.none? rem_arr = nil if rem_arr.none?