Integer error fix

This commit is contained in:
Martin Lensment 2015-01-16 17:16:01 +02:00
parent 2b22ba18f0
commit d0a2adc1a4
3 changed files with 3 additions and 2 deletions

View file

@ -84,7 +84,6 @@ class EppController < ApplicationController
end
# rubocop: enable Style/PredicateName
def write_to_epp_log
request_command = params[:command] || params[:action] # error receives :command, other methods receive :action
ApiLog::EppLog.create({

View file

@ -19,7 +19,8 @@ class Epp::EppDomain < Domain
[:base, :ds_data_with_key_not_allowed],
[:base, :ds_data_not_allowed],
[:base, :key_data_not_allowed],
[:period, :not_a_number]
[:period, :not_a_number],
[:period, :not_an_integer]
],
'2004' => [ # Parameter value range error
[:nameservers, :out_of_range,

View file

@ -104,6 +104,7 @@ en:
period:
out_of_range: 'Period must add up to 1, 2 or 3 years'
not_a_number: 'Period is not a number'
not_an_integer: 'Period must be an integer'
auth_info:
wrong_pw: 'Authorization error'
domain_statuses: