#472: Fixed: undefined method #auto_publish for BuildList
This commit is contained in:
parent
621b74fef2
commit
5595936c48
|
@ -236,7 +236,12 @@ class Projects::BuildListsController < Projects::BaseController
|
||||||
|
|
||||||
params[:build_list] ||= {}
|
params[:build_list] ||= {}
|
||||||
policy(BuildList).permitted_attributes.each do |key|
|
policy(BuildList).permitted_attributes.each do |key|
|
||||||
params[:build_list][key] = build_list.send(key)
|
params[:build_list][key] =
|
||||||
|
if build_list.respond_to?(key)
|
||||||
|
build_list.send(key)
|
||||||
|
elsif build_list.respond_to?("#{key}?")
|
||||||
|
build_list.send("#{key}?")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
params[:arches] = [build_list.arch_id]
|
params[:arches] = [build_list.arch_id]
|
||||||
[:owner_filter, :status_filter].each { |t| params[t] = 'true' if %w(true undefined).exclude? params[t] }
|
[:owner_filter, :status_filter].each { |t| params[t] = 'true' if %w(true undefined).exclude? params[t] }
|
||||||
|
|
Loading…
Reference in New Issue