[Refs #421] Fix bug: autopublish build list in released platform
This commit is contained in:
parent
29750da420
commit
93daa25a62
|
@ -41,7 +41,8 @@ class BuildListsController < ApplicationController
|
||||||
|
|
||||||
def create
|
def create
|
||||||
notices, errors = [], []
|
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|
|
Arch.where(:id => params[:arches]).each do |arch|
|
||||||
Platform.main.where(:id => params[:bpls]).each do |bpl|
|
Platform.main.where(:id => params[:bpls]).each do |bpl|
|
||||||
@build_list = @project.build_lists.build(params[:build_list])
|
@build_list = @project.build_lists.build(params[:build_list])
|
||||||
|
|
Loading…
Reference in New Issue