fix error with issues when issue was deleted
This commit is contained in:
parent
fb71679958
commit
af6bdd5e60
|
@ -127,7 +127,7 @@ class Issue < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def set_serial_id
|
||||
self.serial_id = self.project.issues.count
|
||||
self.serial_id = self.project.issues.maximum(:serial_id).to_i+1
|
||||
self.save!
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue