diff options
-rw-r--r-- | app/models/glsa.rb | 18 | ||||
-rw-r--r-- | app/views/glsa/new-request.html.erb | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/app/models/glsa.rb b/app/models/glsa.rb index fd03145..1c8387c 100644 --- a/app/models/glsa.rb +++ b/app/models/glsa.rb @@ -253,15 +253,15 @@ class Glsa < ActiveRecord::Base raise Exception, "Error while saving the GLSA object: #{e.message}" end - unless comment.strip.blank? - glsa.comments << Comment.new(:rating => "neutral", :text => comment, :user => user) - - begin - glsa.save! - rescue Exception => e - raise Exception, "Error while saving the comment: #{e.message}" - end - end + # unless comment.strip.blank? + # glsa.comments << Comment.new(:rating => "neutral", :text => comment, :user => user) + + # begin + # glsa.save! + # rescue Exception => e + # raise Exception, "Error while saving the comment: #{e.message}" + # end + # end revision = Revision.new revision.revid = glsa.next_revid diff --git a/app/views/glsa/new-request.html.erb b/app/views/glsa/new-request.html.erb index 0d0ef57..1b0c845 100644 --- a/app/views/glsa/new-request.html.erb +++ b/app/views/glsa/new-request.html.erb @@ -29,12 +29,12 @@ <p><textarea name="title" id="title" class="largetext nice" rows="2"><%= params[:title] %></textarea></p> </div> <br /> -<div class="box w40em"> +<!--<div class="box w40em"> <%= box_title('Comment ' << content_tag('small', '(optional)'), :icon => 'icons/comment.png', :escape => false) %> <p><label for="comment">If you want to add a comment, enter it here:</label></p> <p><textarea name="comment" id="comment" class="nice" rows="4"><%= params[:comment] %></textarea></p> </div> -<br /> +<br />--> <div class="box w40em"> <%= box_title('References', :icon => 'icons/reference.png') %> <p> |