mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
registrar: postal field honors error
This commit is contained in:
parent
eeec5705d9
commit
d09855bc6d
1 changed files with 1 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue