[PR #2127] [MERGED] [Bugfix] Fix update transaction API bug #4137

Closed
opened 2026-02-28 20:52:03 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2127
Author: @mk-french
Created: 12/27/2023
Status: Merged
Merged: 12/27/2023
Merged by: @MatissJanis

Base: masterHead: bug-api-updatetx


📝 Commits (3)

📊 Changes

2 files changed (+7 additions, -1 deletions)

View changed files

📝 packages/loot-core/src/server/api.ts (+1 -1)
upcoming-release-notes/2127.md (+6 -0)

📄 Description

This PR fixes a bug where API calls to 'updateTransaction' fail on Tried to edit unknown transaction id:... errors.

updateTransaction requires a transaction with an id property for it's call to replaceTransaction. The transaction-update api call seems to provides a seperate set of fields and id and only passes the fields to the update function - resulting in a subsequent function failing. Seems to be this way since initial commit...


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/2127 **Author:** [@mk-french](https://github.com/mk-french) **Created:** 12/27/2023 **Status:** ✅ Merged **Merged:** 12/27/2023 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `bug-api-updatetx` --- ### 📝 Commits (3) - [`7c0af51`](https://github.com/actualbudget/actual/commit/7c0af51cb9728f187fe567b48cca4983c8560c1d) Fix update transaction api bug - [`8d3d15c`](https://github.com/actualbudget/actual/commit/8d3d15c814a3549907a62069da73a563be9677e4) Release notes - [`fb77b97`](https://github.com/actualbudget/actual/commit/fb77b97cfe61ab9539c0777d203312f7b29d7212) Correct PR number - oops ### 📊 Changes **2 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/api.ts` (+1 -1) ➕ `upcoming-release-notes/2127.md` (+6 -0) </details> ### 📄 Description This PR fixes a bug where API calls to 'updateTransaction' fail on `Tried to edit unknown transaction id:...` errors. `updateTransaction` requires a transaction with an `id` property for it's call to `replaceTransaction`. The transaction-update api call seems to provides a seperate set of fields and id and only passes the fields to the update function - resulting in a subsequent function failing. Seems to be this way since initial commit... --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:52:03 -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#4137