Checked chroot by default

This commit is contained in:
Wedge 2016-12-20 15:56:34 +03:00
parent b539e73d2f
commit 29343bf87f
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ h4.offset10= t("activerecord.attributes.build_list.preferences")
- %i(include_testing_subrepository use_cached_chroot use_extra_tests save_buildroot native_build).each do |kind| - %i(include_testing_subrepository use_cached_chroot use_extra_tests save_buildroot native_build).each do |kind|
.checkbox .checkbox
label label
- checked = params[:build_list].try(:[], kind) - checked = params[:build_list].try(:[], kind) || kind == :use_cached_chroot
- checked = @build_list.send(kind) if checked.nil? - checked = @build_list.send(kind) if checked.nil?
input[type= 'checkbox' input[type= 'checkbox'
checked= checked checked= checked