From d09855bc6d65c58b84472dce49c26bd81a622980 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Thu, 9 Apr 2015 17:24:21 +0300 Subject: [PATCH] registrar: postal field honors error --- app/models/depp/contact.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/depp/contact.rb b/app/models/depp/contact.rb index c6a9cf902..ba6bc5d84 100644 --- a/app/models/depp/contact.rb +++ b/app/models/depp/contact.rb @@ -279,6 +279,7 @@ module Depp attr = message.split('[').last.strip.sub(']', '') if message.include?('[') attr = :base if attr.nil? attr = 'phone' if attr == 'voice' + attr = 'zip' if attr == 'pc' errors.add(attr, message) end errors.blank?