mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Fix double error message when domain too long in EPP #2695
This commit is contained in:
parent
7a19b509e8
commit
1b831fc629
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ class Epp::DomainsController < EppController
|
|||
@domain = Epp::Domain.new_from_epp(params[:parsed_frame], current_user)
|
||||
handle_errors(@domain) and return if @domain.errors.any?
|
||||
@domain.valid?
|
||||
@domain.errors.delete(:name_dirty) if @domain.errors[:puny_label].any?
|
||||
handle_errors(@domain) and return if @domain.errors.any?
|
||||
|
||||
handle_errors and return unless balance_ok?('create')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue