diff options
author | 2011-08-27 15:00:09 +0200 | |
---|---|---|
committer | 2011-08-27 15:00:09 +0200 | |
commit | eee49b17ecd5f5ca3392599c5902e4cd4f17a258 (patch) | |
tree | 460289aa6f772356841b992f68ee63ce0c65748b | |
parent | Migrate tests to rails 3 (diff) | |
download | glsamaker-eee49b17ecd5f5ca3392599c5902e4cd4f17a258.tar.gz glsamaker-eee49b17ecd5f5ca3392599c5902e4cd4f17a258.tar.bz2 glsamaker-eee49b17ecd5f5ca3392599c5902e4cd4f17a258.zip |
GLSAController: Minor cleanup
-rw-r--r-- | app/controllers/glsa_controller.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/glsa_controller.rb b/app/controllers/glsa_controller.rb index 052c5c9..7316dd1 100644 --- a/app/controllers/glsa_controller.rb +++ b/app/controllers/glsa_controller.rb @@ -74,8 +74,6 @@ class GlsaController < ApplicationController return end - #flash.now[:error] = "[debug] id = %d, rev_id = %d" % [ params[:id], params[:rev_id] || -1 ] - respond_to do |wants| wants.html { render } wants.xml { } @@ -148,7 +146,6 @@ class GlsaController < ApplicationController revision.user = current_user revision.title = params[:glsa][:title] revision.synopsis = params[:glsa][:synopsis] - # TODO: secure revision.access = params[:glsa][:access] revision.severity = params[:glsa][:severity] revision.product = params[:glsa][:product] @@ -170,11 +167,11 @@ class GlsaController < ApplicationController end # Bugs + bugzilla_warning = false + if params[:glsa][:bugs] bugs = params[:glsa][:bugs].map {|bug| bug.to_i } - bugzilla_warning = false - bugs.each do |bug| begin b = Glsamaker::Bugs::Bug.load_from_id(bug) @@ -221,7 +218,6 @@ class GlsaController < ApplicationController # Sending emails Glsamaker::Mail.edit_notification(@glsa, rev_diff(@glsa, @glsa.revisions[-2], revision), current_user) - #GlsaMailer.deliver_edit(current_user, @glsa, revision, current_user) flash[:notice] = "Saving was successful. #{'NOTE: Bugzilla integration is not available, only plain bug numbers.' if bugzilla_warning}" redirect_to :action => 'show', :id => @glsa |