Fix contact create with predefined code

This commit is contained in:
Karl Erik Õunapuu 2020-10-26 17:09:12 +02:00
parent 7fd31b7004
commit 8bc064a0b8
No known key found for this signature in database
GPG key ID: C9DD647298A34764
3 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,7 @@ class Epp::Contact < Contact
attrs = epp ? attrs_from(frame, new_record: true) : frame
super(
attrs.merge(
code: epp ? frame.css('id').text : frame[:id],
code: epp ? frame.css('id').text : frame[:code],
registrar: registrar
)
)