[Bug]: editing closed account names #255

Closed
opened 2026-02-28 18:54:25 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @MatissJanis on GitHub (Feb 3, 2023).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

When you edit a closed account name - it adds "closed:" prefix to it. Which then gets saved as the real account name.

Screenshot 2023-02-03 at 19 05 48

Reproduction:

  1. close an account
  2. open the closed account
  3. click on the closed account name to edit it
  4. observe "closed: xxxx" appearing in the edit field
  5. change it to "closed: xxxx yyyyy" (add something at the end)
  6. click "enter" to save
  7. notice that the new account name is "closed: closed: xxxx yyyyy"

What error did you receive?

No response

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

No response

Operating System

None

Originally created by @MatissJanis on GitHub (Feb 3, 2023). ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### What happened? When you edit a closed account name - it adds "closed:" prefix to it. Which then gets saved as the real account name. <img width="400" alt="Screenshot 2023-02-03 at 19 05 48" src="https://user-images.githubusercontent.com/886567/216686326-9c11b23c-eb95-42c1-8a03-141c1f38978d.png"> Reproduction: 1. close an account 2. open the closed account 3. click on the closed account name to edit it 4. observe "closed: xxxx" appearing in the edit field 5. change it to "closed: xxxx yyyyy" (add something at the end) 6. click "enter" to save 7. notice that the new account name is "closed: closed: xxxx yyyyy" ### What error did you receive? _No response_ ### Where are you hosting Actual? None ### What browsers are you seeing the problem on? _No response_ ### Operating System None
GiteaMirror added the buggood first issuehelp wanted labels 2026-02-28 18:54:25 -06:00
Author
Owner

@Kidglove57 commented on GitHub (Feb 3, 2023):

I have run into this quite a number of times and I am ashamed to say never reported it.

@Kidglove57 commented on GitHub (Feb 3, 2023): I have run into this quite a number of times and I am ashamed to say never reported it.
Author
Owner

@n1thun commented on GitHub (Feb 3, 2023):

Hi, can i pick this one up? i think i have the fix for the issue, we can either prevent the string concat for previously closed accounts or disable the edit button for closed account. This is my first contribution for this repo, are there any standard guide lines for PRs?

@n1thun commented on GitHub (Feb 3, 2023): Hi, can i pick this one up? i think i have the fix for the issue, we can either prevent the string concat for previously closed accounts or disable the edit button for closed account. This is my first contribution for this repo, are there any standard guide lines for PRs?
Author
Owner

@j-f1 commented on GitHub (Feb 3, 2023):

Hi @n1thun, that would be awesome! I think the ideal outcome would be that the title still looks the same (e.g. “Closed: [name]”) when viewing it, but when you go to edit the prefix should be removed. We don’t have any particular guidelines for PRs, aside from making sure that you have a reasonably descriptive PR title.

@j-f1 commented on GitHub (Feb 3, 2023): Hi @n1thun, that would be awesome! I think the ideal outcome would be that the title still looks the same (e.g. “Closed: [name]”) when viewing it, but when you go to edit the prefix should be removed. We don’t have any particular guidelines for PRs, aside from making sure that you have a reasonably descriptive PR title.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#255