@ -20,11 +20,11 @@ class Form::Setup::Questions::SchemeId < ::Form::Question
end
defdisplayed_answer_options(case_log)
return{}unlesscase_log.created_by
user_org_scheme_ids=Scheme.select(:id).where(owning_organisation_id:case_log.created_by.organisation_id).joins(:locations).merge(Location.where("startdate <= ? or startdate IS NULL",Time.zone.today)).map(&:id)