Opened 10 years ago

Closed 10 years ago

#2221 closed defect (fixed)

IniAdmin Plugin Apply changes button bug

Reported by: anonymous Owned by: Alec Thomas
Priority: highest Component: IniAdminPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11


IniAdmin Plugin version 0.11

modifiy some settings and click Apply changes button. 404 file not found. (apache error log, File does not exist C:/Program Files/Apache Group/Apache2/htdocs/trac/exampleproject/admin/tracini/trac)


        # Apply changes
        if req.method == 'POST':
            options = [ for (section, _), option in
                       Option.registry.iteritems() if section == page]
            modified = False
            for option, value in req.args.iteritems():
                if option in options:
                    if self.env.config.get(page, option) != value:
                        self.env.config.set(page, option, value)
                        modified = True
            if modified:
                self.env.log.debug("Updating trac.ini")
            #req.redirect(self.env.href.admin(cat, page))

I comment out "req.redirect(self.env.href.admin(cat, page))"

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by Alec Thomas

Fixed in r3024.

comment:2 Changed 10 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.