Modify ↓
#12923 closed defect (fixed)
Form resubmission warning on page refresh after warning added when granting permission
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.17 |
Component: | admin/web | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fixed form resubmission warnings on admin pages. |
||
API Changes: | |||
Internal Changes: |
Description
The issue appears to have been introduced in #3873 / r5227.
-
trac/admin/web_ui.py
diff --git a/trac/admin/web_ui.py b/trac/admin/web_ui.py index acbbd22d5..5d1aad79c 100644
a b class PermissionAdminPanel(Component): 389 389 add_notice(req, _("The subject %(subject)s has been " 390 390 "granted the permission %(action)s.", 391 391 subject=subject, action=action)) 392 req.redirect(req.href.admin(cat, page))393 392 else: 394 393 add_warning(req, _("The permission %(action)s was already " 395 394 "granted to %(subject)s.", 396 395 action=action, subject=subject)) 396 req.redirect(req.href.admin(cat, page)) 397 397 398 398 # Add subject to group 399 399 elif req.args.get('add') and subject and group: … … class PermissionAdminPanel(Component): 416 416 add_notice(req, _("The subject %(subject)s has been added " 417 417 "to the group %(group)s.", 418 418 subject=subject, group=group)) 419 req.redirect(req.href.admin(cat, page))420 419 else: 421 420 add_warning(req, _("The subject %(subject)s was already " 422 421 "added to the group %(group)s.", 423 422 subject=subject, group=group)) 423 req.redirect(req.href.admin(cat, page)) 424 424 425 425 # Remove permissions action 426 426 elif req.args.get('remove') and req.args.get('sel'):
Attachments (1)
Change History (5)
by , 7 years ago
Attachment: | Screen Shot 2017-09-25 at 16.48.00.png added |
---|
comment:1 by , 7 years ago
Summary: | Form resubmission warning after warning added when granting permission → Form resubmission warning on page refresh after warning added when granting permission |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Committed to 1.0-stable in [16338:16340]. I thought changes would be simple but kept discovering more issues on 3rd, 4th … rounds of testing.
I'll revisit in a few days and merge changes if no other issues are found.