From 27dea7d2913c3ce664cf6c1de41176572a3db301 Mon Sep 17 00:00:00 2001 From: Charlie Parker Date: Thu, 23 Jan 2025 20:47:50 -0500 Subject: [PATCH] fix person reference, history fa filtering --- app/helpers/verification_helper.rb | 2 +- .../app/helpers/financial_assistance/verification_helper.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/verification_helper.rb b/app/helpers/verification_helper.rb index bd0c6b75029..00ebcf191b3 100644 --- a/app/helpers/verification_helper.rb +++ b/app/helpers/verification_helper.rb @@ -531,8 +531,8 @@ def verification_upload_query end def verification_admin_actions + person = @evidence.eligibility_state.subject.person if is_evidence_market_eligibility?(@evidence) - person = @evidence.eligibility_state.subject.person type = @evidence.evidence_item_key.to_s gid = GlobalID.parse(@evidence.evidence_gid).model_id { diff --git a/components/financial_assistance/app/helpers/financial_assistance/verification_helper.rb b/components/financial_assistance/app/helpers/financial_assistance/verification_helper.rb index ba51220aea5..0c435b93fd5 100644 --- a/components/financial_assistance/app/helpers/financial_assistance/verification_helper.rb +++ b/components/financial_assistance/app/helpers/financial_assistance/verification_helper.rb @@ -44,13 +44,13 @@ def display_upload_for_evidence?(evidence) end def build_actions_list(evidence) - is_type_outstanding = (evidence.is_a?(EvidenceStateDecorator) ? evidence.status : evidence.aasm_state) == 'outstanding' + is_type_outstanding = (evidence.is_a?(EvidenceStateDecorator) ? evidence.status.to_s : evidence.aasm_state) == 'outstanding' if is_type_outstanding base_actions_list = Eligibilities::Evidence::ADMIN_VERIFICATION_ACTIONS.reject{|el| el == "Reject" } else base_actions_list = Eligibilities::Evidence::ADMIN_VERIFICATION_ACTIONS end - base_actions_list.reject { |el| el == 'View History' } if EnrollRegistry.feature_enabled?(:show_new_verifications_household_summary) + base_actions_list = base_actions_list.reject { |el| el == 'View History' } if EnrollRegistry.feature_enabled?(:show_new_verifications_household_summary) base_actions_list end