@ -24,7 +24,7 @@ class Form::Setup::Questions::SchemeId < ::Form::Question
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)
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)
answer_options.selectdo|k,_v|
answer_options.selectdo|k,_v|
user_org_scheme_ids.include?(k.to_i)
user_org_scheme_ids.include?(k.to_i)||k.blank?
end
end
end
end
@ -32,6 +32,10 @@ class Form::Setup::Questions::SchemeId < ::Form::Question