fix error with issues when issue was deleted

This commit is contained in:
Alexander Machehin 2015-06-03 19:33:42 +05:00
parent fb71679958
commit af6bdd5e60
1 changed files with 1 additions and 1 deletions

View File

@ -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