Browse Source

feat: fix filter types in org controller - can be changed to org specific labels in future if needed rather than copying filters from primary sales/lettings tabs

pull/1675/head
natdeanlewissoftwire 3 years ago
parent
commit
4114732332
  1. 12
      app/controllers/organisations_controller.rb

12
app/controllers/organisations_controller.rb

@ -158,12 +158,20 @@ class OrganisationsController < ApplicationController
private
def filter_type
if params[:action].include?("lettings")
"lettings_logs"
elsif params[:action].include?("sales")
"sales_logs"
end
end
def set_session_filters
filter_manager.serialize_filters_to_session(params[:action].to_s, specific_org: true)
filter_manager.serialize_filters_to_session(filter_type, specific_org: true)
end
def session_filters
filter_manager.session_filters(params[:action].to_s, specific_org: true)
filter_manager.session_filters(filter_type, specific_org: true)
end
def filter_manager

Loading…
Cancel
Save