Quickfix for status_build. Refs #444

This commit is contained in:
Pavel Chipiga 2012-05-15 01:15:48 +03:00
parent 56ad094b00
commit 06191eb12a
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class Projects::BuildListsController < Projects::BaseController
@build_list.container_path = params[:container_path]
@build_list.save
@build_list.set_packages(ActiveSupport::JSON.decode(params[:pkg_info])) if params[:status].to_i == BuildServer::SUCCESS
@build_list.set_packages(ActiveSupport::JSON.decode(params[:pkg_info])) if params[:status].to_i == BuildServer::SUCCESS and params[:pkg_info].present?
render :nothing => true, :status => 200
end