Edgewall Software

Opened 7 years ago

Last modified 7 years ago

#12923 closed defect

Form resubmission warning after warning added when granting permission — at Initial Version

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:
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):  
    389389                    add_notice(req, _("The subject %(subject)s has been "
    390390                                      "granted the permission %(action)s.",
    391391                                      subject=subject, action=action))
    392                     req.redirect(req.href.admin(cat, page))
    393392                else:
    394393                    add_warning(req, _("The permission %(action)s was already "
    395394                                       "granted to %(subject)s.",
    396395                                       action=action, subject=subject))
     396                req.redirect(req.href.admin(cat, page))
    397397
    398398            # Add subject to group
    399399            elif req.args.get('add') and subject and group:
    class PermissionAdminPanel(Component):  
    416416                    add_notice(req, _("The subject %(subject)s has been added "
    417417                                      "to the group %(group)s.",
    418418                                      subject=subject, group=group))
    419                     req.redirect(req.href.admin(cat, page))
    420419                else:
    421420                    add_warning(req, _("The subject %(subject)s was already "
    422421                                       "added to the group %(group)s.",
    423422                                       subject=subject, group=group))
     423                req.redirect(req.href.admin(cat, page))
    424424
    425425            # Remove permissions action
    426426            elif req.args.get('remove') and req.args.get('sel'):

Change History (1)

by Ryan J Ollos, 7 years ago

Note: See TracTickets for help on using tickets.