diff options
author | Alex Legler <a3li@gentoo.org> | 2011-10-13 23:44:50 +0200 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2011-10-13 23:44:50 +0200 |
commit | 1e2f360999b20d10d3faec2e336b0673d28c0131 (patch) | |
tree | 308fd29bebbe3b94769d727c6b10d2b55b928161 | |
parent | Fix NoMethodError with unreadable bugs (diff) | |
download | glsamaker-1e2f360999b20d10d3faec2e336b0673d28c0131.tar.gz glsamaker-1e2f360999b20d10d3faec2e336b0673d28c0131.tar.bz2 glsamaker-1e2f360999b20d10d3faec2e336b0673d28c0131.zip |
Allow more than just octal numbers as advisory ID.
-rw-r--r-- | app/models/glsa.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/glsa.rb b/app/models/glsa.rb index bff4f6a..65493c5 100644 --- a/app/models/glsa.rb +++ b/app/models/glsa.rb @@ -199,7 +199,7 @@ class Glsa < ActiveRecord::Base return "#{month_id}-01" if items.length == 0 items.first.glsa_id =~ /^#{month_id}-(\d+)$/ - next_id = Integer($1) + 1 + next_id = $1.to_i + 1 "#{month_id}-#{format "%02d", next_id}" end |