You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-05-20] [$250] Expense - To field shows wrong workspace after creating new report on confirm page #89104
Version Number: 9.3.64-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#87962 Email or phone of affected tester (no customers):sjiodjnsoijdnijsiojosj1@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
📣 @applause-bot[bot]! 📣
Please report bugs or suggest features in the #expensify-open-source Slack channel, don't directly open issues in this repo! Instructions here to join the channel 📖
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
PR #87962 (fixing #87441) changed the "Create report" button to use the default workspace for the user's own expenses. However, when createReportForPolicy creates a new report, it routes through handleRegularReportSelection, which only updates transaction.reportID but does not update transaction.participants.
The "To" field on the confirmation page is derived from transaction.participants. So after creating a report in workspace A, reportID points to workspace A but participants still references workspace B — causing the stale "To" field.
By contrast, handleGlobalCreateReport correctly updates bothreportID and participants when selecting a report.
What changes do you think we should make in order to solve the problem?
Update handleRegularReportSelection in IOURequestStepReport.tsx to also pass updated participants (with the new report's policyID and reportID) to setTransactionReport, matching the pattern used by handleGlobalCreateReport. This ensures the "To" field stays in sync whenever the report changes.
What alternative solutions did you explore? (Optional)
An alternative would be to add a useEffect in IOURequestStepConfirmation that syncs participants whenever transaction.reportID changes (similar to the existing PAY-type sync at line 210). However, updating at the source (handleRegularReportSelection) is cleaner and avoids reactive cascading updates.
Investigation details
Data flow of the bug:
User is on confirm page with expense targeting workspace B (transaction.participants has policyID=B)
usePolicyForMovingExpenses falls back to the active/default workspace (A)
createReportForPolicy creates a report in workspace A, then calls handleRegularReportSelection
handleRegularReportSelection calls setTransactionReport with only {reportID: newReportID} — no participants update
Back on confirmation page: transaction.reportID → workspace A, but transaction.participants → still workspace B
"To" field renders stale workspace B
Related issue:#87441 (the original issue that PR #87962 was fixing)
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
changed the title [-]88633R2 Expense - To field shows wrong workspace after creating new report on confirm page[/-][+]Expense - To field shows wrong workspace after creating new report on confirm page[/+]on Apr 28, 2026
changed the title [-]Expense - To field shows wrong workspace after creating new report on confirm page[/-][+][$250] Expense - To field shows wrong workspace after creating new report on confirm page[/+]on May 6, 2026
@jayeshmangwani@deetergp the job has been added to Upwork, but the external labels are missing. Is this issue open for external contributors, or did Melvin miss something here?
changed the title [-][$250] Expense - To field shows wrong workspace after creating new report on confirm page[/-][+][Due for payment 2026-05-20] [$250] Expense - To field shows wrong workspace after creating new report on confirm page[/+]on May 13, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.72-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
melvin-bot commentedon Apr 28, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #87962
melvin-bot commentedon Apr 28, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Apr 28, 2026
📣 @applause-bot[bot]! 📣
Please report bugs or suggest features in the #expensify-open-source Slack channel, don't directly open issues in this repo!
Instructions here to join the channel 📖
github-actions commentedon Apr 28, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
MelvinBot commentedon Apr 28, 2026
Proposal
What is the root cause of that problem?
PR #87962 (fixing #87441) changed the "Create report" button to use the default workspace for the user's own expenses. However, when
createReportForPolicycreates a new report, it routes throughhandleRegularReportSelection, which only updatestransaction.reportIDbut does not updatetransaction.participants.The "To" field on the confirmation page is derived from
transaction.participants. So after creating a report in workspace A,reportIDpoints to workspace A butparticipantsstill references workspace B — causing the stale "To" field.By contrast,
handleGlobalCreateReportcorrectly updates bothreportIDandparticipantswhen selecting a report.What changes do you think we should make in order to solve the problem?
Update
handleRegularReportSelectioninIOURequestStepReport.tsxto also pass updatedparticipants(with the new report'spolicyIDandreportID) tosetTransactionReport, matching the pattern used byhandleGlobalCreateReport. This ensures the "To" field stays in sync whenever the report changes.What alternative solutions did you explore? (Optional)
An alternative would be to add a
useEffectinIOURequestStepConfirmationthat syncs participants whenevertransaction.reportIDchanges (similar to the existing PAY-type sync at line 210). However, updating at the source (handleRegularReportSelection) is cleaner and avoids reactive cascading updates.Investigation details
Data flow of the bug:
transaction.participantshaspolicyID=B)targetExpensePolicyIDis set toundefinedusePolicyForMovingExpensesfalls back to the active/default workspace (A)createReportForPolicycreates a report in workspace A, then callshandleRegularReportSelectionhandleRegularReportSelectioncallssetTransactionReportwith only{reportID: newReportID}— no participants updatetransaction.reportID→ workspace A, buttransaction.participants→ still workspace BRelated issue: #87441 (the original issue that PR #87962 was fixing)
Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.[-]88633R2 Expense - To field shows wrong workspace after creating new report on confirm page[/-][+]Expense - To field shows wrong workspace after creating new report on confirm page[/+]19 remaining items
[-]Expense - To field shows wrong workspace after creating new report on confirm page[/-][+][$250] Expense - To field shows wrong workspace after creating new report on confirm page[/+]KJ21-ENG commentedon May 6, 2026
@jayeshmangwani @deetergp the job has been added to Upwork, but the external labels are missing. Is this issue open for external contributors, or did Melvin miss something here?
jayeshmangwani commentedon May 6, 2026
@KJ21-ENG It seems the issue is from Melvin. Issue already has a "reviewing" label, and the PR is being reviewed, so it’s not open for proposals.
KJ21-ENG commentedon May 6, 2026
@jayeshmangwani thanks for the clarification.
deetergp commentedon May 13, 2026
The fix is currently on staging.
[-][$250] Expense - To field shows wrong workspace after creating new report on confirm page[/-][+][Due for payment 2026-05-20] [$250] Expense - To field shows wrong workspace after creating new report on confirm page[/+]melvin-bot commentedon May 13, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 13, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.72-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-05-20. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 13, 2026
@jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
jayeshmangwani commentedon May 18, 2026
@deetergp I think we can close this issue, as it was a regression. Payment will be handled in this issue: #87441