From 55fb0fedfed3e8491ff08f2050e3a0c9827275ca Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 17 Jul 2015 09:12:23 +0200 Subject: [PATCH] Improved error handling. --- app/models/ticket/number/increment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ticket/number/increment.rb b/app/models/ticket/number/increment.rb index 6827ade2f..9f1b97650 100644 --- a/app/models/ticket/number/increment.rb +++ b/app/models/ticket/number/increment.rb @@ -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