[PR #5259] [MERGED] Fix rule templating on date causing crash #20209

Closed
opened 2026-04-14 21:30:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5259
Author: @pogman-code
Created: 6/30/2025
Status: Merged
Merged: 7/3/2025
Merged by: @youngcw

Base: masterHead: fix-rule-template-date-set


📝 Commits (2)

  • 700d2cc fix rule templating on date causing crash
  • bdbd9ff apply coderabbit suggestion, more or less

📊 Changes

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

View changed files

📝 packages/loot-core/src/server/rules/index.ts (+12 -1)
upcoming-release-notes/5259.md (+6 -0)

📄 Description

Fixes #5258

Long story short, the "set" rule set a Date object to the transaction instead of a "yyyy-MM-dd" string.
Causing a crash when calling parseISO(date) in the serializeTransaction function.


🔄 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/5259 **Author:** [@pogman-code](https://github.com/pogman-code) **Created:** 6/30/2025 **Status:** ✅ Merged **Merged:** 7/3/2025 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `fix-rule-template-date-set` --- ### 📝 Commits (2) - [`700d2cc`](https://github.com/actualbudget/actual/commit/700d2ccea6cf919a6ce53bde78043115c0c43b52) fix rule templating on date causing crash - [`bdbd9ff`](https://github.com/actualbudget/actual/commit/bdbd9ff5cc668694093ebc2c9b51ef7ce8cea1bd) apply coderabbit suggestion, more or less ### 📊 Changes **2 files changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/rules/index.ts` (+12 -1) ➕ `upcoming-release-notes/5259.md` (+6 -0) </details> ### 📄 Description Fixes #5258 Long story short, the "set" rule set a Date object to the transaction instead of a "yyyy-MM-dd" string. Causing a crash when calling `parseISO(date)` in the `serializeTransaction` function. --- <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-04-14 21:30:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#20209