[PR #6501] fix: Unsplit transaction without losing the parent’s data. #6570

Closed
opened 2026-02-28 21:30:09 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6501

State: closed
Merged: Yes


Fixed logic:

  • use the parent’s transaction with the child’s category for unsplit transactions to prevent data loss

Fixes #6271

Summary by CodeRabbit

  • Bug Fixes

    • Unsplit last remaining child transactions now correctly converts the parent into a regular transaction and preserves amount, category, notes, and related details when the final child is removed.
    • Ensures the final child is removed and the parent’s state is updated atomically to prevent orphaned or inconsistent data.
  • Tests

    • Added coverage verifying that unsplitting the final child updates the parent and deletes the child as expected.

✏️ Tip: You can customize this high-level summary in your review settings.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6501 **State:** closed **Merged:** Yes --- Fixed logic: - use the parent’s transaction with the child’s category for unsplit transactions to prevent data loss Fixes #6271 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Unsplit last remaining child transactions now correctly converts the parent into a regular transaction and preserves amount, category, notes, and related details when the final child is removed. * Ensures the final child is removed and the parent’s state is updated atomically to prevent orphaned or inconsistent data. * **Tests** * Added coverage verifying that unsplitting the final child updates the parent and deletes the child as expected. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
GiteaMirror added the pull-request label 2026-02-28 21:30:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6570