Improved error handling.
This commit is contained in:
parent
c0eae369d6
commit
292a31b6ef
2 changed files with 2 additions and 0 deletions
|
@ -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') || ''
|
||||
|
|
|
@ -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') || ''
|
||||
|
|
Loading…
Reference in a new issue