From 863213767b4d2468dddf50e40151360ebf3c4a8a Mon Sep 17 00:00:00 2001 From: George Vinogradov Date: Tue, 5 Jun 2012 19:55:50 +0400 Subject: [PATCH] [issue #428] Fixed typos. Removed unnecessary parts. --- app/controllers/projects/build_lists_controller.rb | 3 +-- app/views/advisories/_form.html.haml | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/projects/build_lists_controller.rb b/app/controllers/projects/build_lists_controller.rb index 0fcf3720e..2f3629532 100644 --- a/app/controllers/projects/build_lists_controller.rb +++ b/app/controllers/projects/build_lists_controller.rb @@ -74,7 +74,6 @@ class Projects::BuildListsController < Projects::BaseController end def update -# raise params.inspect if params[:publish].present? and can?(:publish, @build_list) publish elsif params[:reject_publish].present? and can?(:reject_publish, @build_list) @@ -193,7 +192,7 @@ class Projects::BuildListsController < Projects::BaseController end a.platforms << @build_list.save_to_platform unless a.platforms.include? @build_list.save_to_platform @build_list.advisory = a - if !a.save + unless a.save redirect_to :back, :notice => t('layout.build_lists.publish_fail') and return end end diff --git a/app/views/advisories/_form.html.haml b/app/views/advisories/_form.html.haml index 64f1f4320..a21ff2acb 100644 --- a/app/views/advisories/_form.html.haml +++ b/app/views/advisories/_form.html.haml @@ -13,7 +13,3 @@ .rightlist = f.text_area :references, :class => 'text_field', :cols => 80 .both - -:javascript - $(function() { - });