mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Fix error on birthday contact creation validation fail
This commit is contained in:
parent
82c048b316
commit
194489e40f
2 changed files with 37 additions and 1 deletions
|
@ -2,7 +2,7 @@ xml.epp_head do
|
|||
xml.response do
|
||||
@errors.each do |error|
|
||||
x = error&.options
|
||||
next if x.empty? || x == { value: nil }
|
||||
next if x.empty? || x == { value: nil } || x[:code].blank?
|
||||
|
||||
xml.result('code' => x[:code]) do
|
||||
xml.msg(x[:msg], 'lang' => 'en')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue