[Refs #421] Fix bug: autopublish build list in released platform

This commit is contained in:
Vladimir Sharshov 2012-04-24 15:15:04 +04:00
parent 29750da420
commit 93daa25a62
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ class BuildListsController < ApplicationController
def create
notices, errors = [], []
params[:build_list].delete(:auto_publish) if @platform.released
# Disable auto_publish if platform released
params[:build_list][:auto_publish] = false if @platform.released
Arch.where(:id => params[:arches]).each do |arch|
Platform.main.where(:id => params[:bpls]).each do |bpl|
@build_list = @project.build_lists.build(params[:build_list])