From 292a31b6ef831b5634df822d1b0df31f84fc8ed2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 16 Mar 2016 10:53:41 +0100 Subject: [PATCH] Improved error handling. --- app/models/ticket/number/date.rb | 1 + app/models/ticket/number/increment.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/models/ticket/number/date.rb b/app/models/ticket/number/date.rb index 323abd7d7..8e57f5b65 100644 --- a/app/models/ticket/number/date.rb +++ b/app/models/ticket/number/date.rb @@ -65,6 +65,7 @@ module Ticket::Number::Date end def check(string) + return if !string || string.empty? # get config system_id = Setting.get('system_id') || '' diff --git a/app/models/ticket/number/increment.rb b/app/models/ticket/number/increment.rb index 973348ca7..d268b44d9 100644 --- a/app/models/ticket/number/increment.rb +++ b/app/models/ticket/number/increment.rb @@ -70,6 +70,7 @@ module Ticket::Number::Increment end def check(string) + return if !string || string.empty? # get config system_id = Setting.get('system_id') || ''