Commit 3179626
Fix stale TRANSACTION_DRAFT entry after editing split expense amount
setSplitShares and resetSplitShares unconditionally wrote to
TRANSACTION_DRAFT even when editing an existing (non-draft) split
transaction. This left an orphaned entry that was never cleaned up,
causing the next new expense to show "Create 2 expenses" on the
confirmation page.
Add an isDraft parameter (default true) to both functions, matching
the pattern used by setMoneyRequestCreated and other peer functions.
Pass isDraft=false from IOURequestStepAmount when editing.
Co-authored-by: Eskalifer1 <Eskalifer1@users.noreply.github.com>1 parent b4db455 commit 3179626
2 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
| 1080 | + | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
1085 | 1087 | | |
1086 | 1088 | | |
1087 | 1089 | | |
1088 | | - | |
| 1090 | + | |
1089 | 1091 | | |
1090 | 1092 | | |
1091 | 1093 | | |
| |||
1116 | 1118 | | |
1117 | 1119 | | |
1118 | 1120 | | |
1119 | | - | |
| 1121 | + | |
1120 | 1122 | | |
1121 | 1123 | | |
1122 | | - | |
| 1124 | + | |
1123 | 1125 | | |
1124 | 1126 | | |
1125 | 1127 | | |
1126 | 1128 | | |
1127 | 1129 | | |
1128 | 1130 | | |
1129 | 1131 | | |
1130 | | - | |
| 1132 | + | |
1131 | 1133 | | |
1132 | 1134 | | |
1133 | 1135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
0 commit comments