GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A web-based client to manage Nessus scans.
Clone URL: git://github.com/dxoigmn/achilles.git
Revert previous commit and actually fix the bug.
dxoigmn (author)
Thu Jun 19 15:47:45 -0700 2008
commit  d536127bfd14703c1de0173aa7e639b80b167f26
tree    33dc36ce90f58ad48a82d55990c71b637d85a3e3
parent  4033795161abea77c98d00c96a73e1d39d69e3e7
...
5
6
7
8
 
 
 
 
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
13
14
15
16
0
@@ -5,7 +5,12 @@ class Severity < ActiveRecord::Base
0
   belongs_to :location
0
   
0
   def self.choices
0
- [['Deferred', ''], '1', '2', '3', '4', '5']
0
+ [['Deferred', ''],
0
+ ['1', 1],
0
+ ['2', 2],
0
+ ['3', 3],
0
+ ['4', 4],
0
+ ['5', 5]]
0
   end
0
   
0
   def update_classification_plugin_severities!
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 = section_for(@vulnerability) do
0
   - form_for(@vulnerability) do |form|
0
     %dl.editing
0
- = form_field('Severity', form.select(:severity, Severity.choices, :selected => @vulnerability.real_severity.to_s))
0
+ = form_field('Severity', form.select(:severity, Severity.choices, :selected => @vulnerability.real_severity))
0
       = form_field('Status', form.select(:status_id, Status.choices))
0
       = form_field('Description', form.text_area(:description, :rows => 5))
0
       = form_field('Evaluation', form.text_area(:evaluation, :rows => 5))

Comments

    No one has commented yet.