[#242] again fix checked repositories
This commit is contained in:
parent
c13e44dc64
commit
a6b0831761
|
@ -1,7 +1,7 @@
|
|||
- Repository.custom_sort(platform.repositories).each do |repo|
|
||||
.both
|
||||
- if params[:build_list].try(:[], :include_repos).present?
|
||||
- checked = (params[:build_list].try(:[], :include_repos) || []).include?(repo.id)
|
||||
- checked = (params[:build_list].try(:[], :include_repos).map(&:to_s) || []).include?(repo.id.to_s)
|
||||
- else checked = false
|
||||
= check_box_tag 'build_list[include_repos][]', repo.id, checked,
|
||||
:disabled => params[:build_list].try(:[], :build_for_platform_id).to_i != platform.id,
|
||||
|
|
Loading…
Reference in New Issue