Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve duration when editing 1w ban #5698

Open
ErikHumphrey opened this issue May 2, 2024 · 1 comment
Open

Preserve duration when editing 1w ban #5698

ErikHumphrey opened this issue May 2, 2024 · 1 comment
Labels

Comments

@ErikHumphrey
Copy link
Contributor

ErikHumphrey commented May 2, 2024

When you edit a 1 week ban, often to edit the ban reason, the duration dropdown is always reset to 1 day. Editing the ban should default to the current ban duration so you don't mistakenly reduce the ban length to 1 day.

@nottalulah
Copy link
Contributor

This only seems to happen for one-week bans, because they get converted to "7 days" and the iso8601 entries are different (P7D vs P1W). The other lengths aren't reset to 1 day.

@ErikHumphrey ErikHumphrey changed the title Preserve duration when editing ban Preserve duration when editing 1w ban May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants