[issue #428] Fixed typos. Removed unnecessary parts.
This commit is contained in:
parent
e7c0eab736
commit
863213767b
|
@ -74,7 +74,6 @@ class Projects::BuildListsController < Projects::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
# raise params.inspect
|
|
||||||
if params[:publish].present? and can?(:publish, @build_list)
|
if params[:publish].present? and can?(:publish, @build_list)
|
||||||
publish
|
publish
|
||||||
elsif params[:reject_publish].present? and can?(:reject_publish, @build_list)
|
elsif params[:reject_publish].present? and can?(:reject_publish, @build_list)
|
||||||
|
@ -193,7 +192,7 @@ class Projects::BuildListsController < Projects::BaseController
|
||||||
end
|
end
|
||||||
a.platforms << @build_list.save_to_platform unless a.platforms.include? @build_list.save_to_platform
|
a.platforms << @build_list.save_to_platform unless a.platforms.include? @build_list.save_to_platform
|
||||||
@build_list.advisory = a
|
@build_list.advisory = a
|
||||||
if !a.save
|
unless a.save
|
||||||
redirect_to :back, :notice => t('layout.build_lists.publish_fail') and return
|
redirect_to :back, :notice => t('layout.build_lists.publish_fail') and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,7 +13,3 @@
|
||||||
.rightlist
|
.rightlist
|
||||||
= f.text_area :references, :class => 'text_field', :cols => 80
|
= f.text_area :references, :class => 'text_field', :cols => 80
|
||||||
.both
|
.both
|
||||||
|
|
||||||
:javascript
|
|
||||||
$(function() {
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in New Issue