Skip to content

Fix issue #7651: Add missing variable extraction in Advanced Deposit …#7663

Merged
DawoudIO merged 2 commits intomasterfrom
fix/issue-7651-advanced-deposit-report-blank-screen
Nov 28, 2025
Merged

Fix issue #7651: Add missing variable extraction in Advanced Deposit …#7663
DawoudIO merged 2 commits intomasterfrom
fix/issue-7651-advanced-deposit-report-blank-screen

Conversation

@DawoudIO
Copy link
Contributor

When refactoring from while...extract() to foreach, the fund and family sort loops were missing variable extractions from the $aRow array, causing undefined variable errors and blank screens when generating reports with these sort options.

  • Sort by Fund loop: Add extraction of fam_Address1, plg_depID, plg_amount, plg_method, plg_comment, plg_CheckNo, dep_Date with null-safe checks
  • Sort by Family loop: Add complete extraction of all 11 required variables (fun_ID, fun_Name, fam_ID, fam_Name, fam_Address1, plg_depID, plg_amount, plg_method, plg_comment, plg_CheckNo, dep_Date)

This fixes blank screen issues when users select these sort options or PDF/CSV export formats for Advanced Deposit Reports.

Fix #7651

What Changed

Fixes #

Type

  • ✨ Feature
  • 🐛 Bug fix
  • ♻️ Refactor
  • 🏗️ Build/Infrastructure
  • 🔒 Security

Testing

Screenshots

Security Check

  • Introduces new input validation
  • Modifies authentication/authorization
  • Affects data privacy/GDPR

Code Quality

  • Database: Propel ORM only, no raw SQL
  • No deprecated attributes (align, valign, nowrap, border, cellpadding, cellspacing, bgcolor)
  • Bootstrap CSS classes used
  • All CSS bundled via webpack

Pre-Merge

  • Tested locally
  • No new warnings
  • Build passes
  • Backward compatible (or migration documented)

…Report sort loops

When refactoring from while...extract() to foreach, the fund and family sort loops
were missing variable extractions from the $aRow array, causing undefined variable
errors and blank screens when generating reports with these sort options.

- Sort by Fund loop: Add extraction of fam_Address1, plg_depID, plg_amount,
  plg_method, plg_comment, plg_CheckNo, dep_Date with null-safe checks
- Sort by Family loop: Add complete extraction of all 11 required variables
  (fun_ID, fun_Name, fam_ID, fam_Name, fam_Address1, plg_depID, plg_amount,
  plg_method, plg_comment, plg_CheckNo, dep_Date)

This fixes blank screen issues when users select these sort options or PDF/CSV
export formats for Advanced Deposit Reports.
@DawoudIO DawoudIO requested a review from a team as a code owner November 28, 2025 21:55
Copilot AI review requested due to automatic review settings November 28, 2025 21:55
@DawoudIO DawoudIO added the bug label Nov 28, 2025
@DawoudIO DawoudIO requested review from DAcodedBEAT, MrClever, bigtigerku, grayeul and respencer and removed request for a team November 28, 2025 21:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes undefined variable errors in the Advanced Deposit Report by adding manual variable extractions that were missing after a previous refactoring from while...extract() to foreach. The PR correctly addresses the "Sort by Fund" section with null-safe checks but inconsistently implements the "Sort by Family" section with direct array access that could still cause warnings.

Key Changes

  • Added 7 variable extractions with null-safe isset() checks to the "Sort by Fund" loop (lines 467-473)
  • Added 11 variable extractions with direct array access to the "Sort by Family" loop (lines 631-641)
  • Both sections now extract all required variables from the $aRow array instead of relying on the deprecated extract() function

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@DawoudIO DawoudIO merged commit 585d65c into master Nov 28, 2025
7 checks passed
@DawoudIO DawoudIO deleted the fix/issue-7651-advanced-deposit-report-blank-screen branch November 28, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updated to 6.2.0 - same issue no deposit data/deposit reports stuck on BLANK screen

2 participants