Improved error handling.
This commit is contained in:
parent
2edeef76e1
commit
55fb0fedfe
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module Ticket::Number::Increment
|
|||
if config[:checksum]
|
||||
min_digs = min_digs.to_i - 1
|
||||
end
|
||||
fillup = Setting.get('system_id') || '1'
|
||||
fillup = Setting.get('system_id').to_s || '1'
|
||||
( 1..100 ).each {
|
||||
|
||||
next if ( fillup.length.to_i + counter_increment.to_s.length.to_i ) >= min_digs.to_i
|
||||
|
|
Loading…
Reference in a new issue