contact generates code if custom code is empty

This commit is contained in:
Priit Tark 2015-03-27 15:37:39 +02:00
parent c898ad57f5
commit 251231cf3f
2 changed files with 19 additions and 1 deletions

View file

@ -42,7 +42,7 @@ class Epp::Contact < Contact
return super if frame.blank?
custom_code =
if frame.css('id').present?
if frame.css('id').text.present?
"#{registrar.code}:#{frame.css('id').text.parameterize}"
else
nil