registrar: postal field honors error

This commit is contained in:
Priit Tark 2015-04-09 17:24:21 +03:00
parent eeec5705d9
commit d09855bc6d

View file

@ -279,6 +279,7 @@ module Depp
attr = message.split('[').last.strip.sub(']', '') if message.include?('[') attr = message.split('[').last.strip.sub(']', '') if message.include?('[')
attr = :base if attr.nil? attr = :base if attr.nil?
attr = 'phone' if attr == 'voice' attr = 'phone' if attr == 'voice'
attr = 'zip' if attr == 'pc'
errors.add(attr, message) errors.add(attr, message)
end end
errors.blank? errors.blank?