Do not generate ticket number if already exists.

This commit is contained in:
Martin Edenhofer 2013-01-25 11:58:00 +01:00
parent bf56a3a17e
commit 659329f0c8

View file

@ -402,6 +402,8 @@ class Ticket < ApplicationModel
private
def number_generate
return if self.number
return if !self.number.empty?
# generate number
(1..25_000).each do |i|