[#242] another fix checked repositories

This commit is contained in:
Alexander Machehin 2013-08-06 21:54:58 +06:00
parent b0ab33f13f
commit c13e44dc64
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
- Repository.custom_sort(platform.repositories).each do |repo| - Repository.custom_sort(platform.repositories).each do |repo|
.both .both
- if params[:build_list].try(:[], :include_repos).present? - if params[:build_list].try(:[], :include_repos).present?
- checked = (params[:build_list].try(:[], :include_repos) || []).include?(repo.id.to_s) - checked = (params[:build_list].try(:[], :include_repos) || []).include?(repo.id)
- else checked = false - else checked = false
= check_box_tag 'build_list[include_repos][]', repo.id, checked, = check_box_tag 'build_list[include_repos][]', repo.id, checked,
:disabled => params[:build_list].try(:[], :build_for_platform_id).to_i != platform.id, :disabled => params[:build_list].try(:[], :build_for_platform_id).to_i != platform.id,