Skip to content

Commit

Permalink
Merge pull request #19000 from department-of-veterans-affairs/JHoang/…
Browse files Browse the repository at this point in the history
…APPEALS-23520/23521

APPEALS-23521 CAVC Dashboard not showing all issues for Remand
  • Loading branch information
zurbergram authored Jul 21, 2023
2 parents d3dac4d + 9ded555 commit 2d72925
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/models/cavc_dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ def set_attributes_from_cavc_remand
end

def remand_request_issues
return cavc_remand.remand_appeal&.request_issues.order(:id) if cavc_remand.remand_appeal
remand_appeal_issues = cavc_remand.remand_appeal ? cavc_remand.remand_appeal&.request_issues.order(:id) : []
source_issues = cavc_remand.source_appeal&.request_issues.order(:id)

cavc_remand.source_appeal&.request_issues.order(:id)
remand_appeal_issues + source_issues.reject do |ri|
remand_appeal_issues.any? do |rai|
rai.description.gsub(/#\d+\z/, "").rstrip == ri.description && rai.benefit_type == ri.benefit_type
end
end
end

def create_dispositions_for_remand_request_issues
Expand Down

0 comments on commit 2d72925

Please sign in to comment.