@@ -673,7 +673,7 class Project < ActiveRecord::Base | |||
|
673 | 673 | |
|
674 | 674 | # Returns an auto-generated project identifier based on the last identifier used |
|
675 | 675 | def self.next_identifier |
|
676 |
p = Project.order(' |
|
|
676 | p = Project.order('id DESC').first | |
|
677 | 677 | p.nil? ? nil : p.identifier.to_s.succ |
|
678 | 678 | end |
|
679 | 679 |
General Comments 0
You need to be logged in to leave comments.
Login now