-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
routers/repo/setting: display correct error for invalid mirror interval #6414
routers/repo/setting: display correct error for invalid mirror interval #6414
Conversation
Set Err_Interval in the context data so that the mirror interval box is highlighted red as expected. Clear Err_RepoName for the mirror and advanced actions. repo_name is not set by these forms, causing auth.validate() to set the Err_RepoName before SettingsPost is called, which would lead to the repository name box getting erroneously highlighted red. Fixes: go-gitea#6396
fdd895c
to
954863f
Compare
Codecov Report
@@ Coverage Diff @@
## master #6414 +/- ##
=========================================
Coverage ? 38.86%
=========================================
Files ? 365
Lines ? 51401
Branches ? 0
=========================================
Hits ? 19978
Misses ? 28554
Partials ? 2869
Continue to review full report at Codecov.
|
Thanks for PR @aswild 😃 Please send a backport to release/v1.8 branch with these changes. If you need any assistance please don't hesitate to ask. |
Cherry-picked (cleanly) to v1.8: #6429 |
Set Err_Interval in the context data so that the mirror interval box is
highlighted red as expected.
Clear Err_RepoName for the mirror and advanced actions. repo_name is not
set by these forms, causing auth.validate() to set the Err_RepoName
before SettingsPost is called, which would lead to the repository name
box getting erroneously highlighted red.
Fixes: #6396