|
|
|
@ -33,7 +33,7 @@ class OrganisationsController < ApplicationController |
|
|
|
organisation_schemes = Scheme.where(owning_organisation: [@organisation] + @organisation.parent_organisations) |
|
|
|
organisation_schemes = Scheme.where(owning_organisation: [@organisation] + @organisation.parent_organisations) |
|
|
|
unpaginated_filtered_schemes = filter_manager.filtered_schemes(organisation_schemes, search_term, session_filters) |
|
|
|
unpaginated_filtered_schemes = filter_manager.filtered_schemes(organisation_schemes, search_term, session_filters) |
|
|
|
|
|
|
|
|
|
|
|
render "schemes/download_csv", locals: { search_term:, post_path: email_csv_schemes_path, download_type: params[:download_type], schemes: unpaginated_filtered_schemes } |
|
|
|
render "schemes/download_csv", locals: { search_term:, post_path: schemes_email_csv_organisation_path, download_type: params[:download_type], schemes: unpaginated_filtered_schemes } |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def email_schemes_csv |
|
|
|
def email_schemes_csv |
|
|
|
|