Skip to content

Commit

Permalink
fix controller
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Feb 6, 2024
1 parent abbe4ac commit d154cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/local_authorities_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def download_links_form

def download_links_csv
authority_name = @authority.name.parameterize.underscore
statuses = params[:links_status_checkbox] && %w[ok broken caution missing pending]
statuses = params[:links_status_checkbox] & %w[ok broken caution missing pending]
data = LocalLinksManager::Export::LinksExporter.new.export_links(@authority.id, statuses)
send_data data, filename: "#{authority_name}_links.csv"
end
Expand Down

0 comments on commit d154cdd

Please sign in to comment.