Modify

Opened 17 years ago

Closed 17 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

Description

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)

solution...

        # Apply changes
        if req.method == 'POST':
            options = [option.name 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")
                self.env.config.save()
            #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 17 years ago by Alec Thomas

Fixed in r3024.

comment:2 Changed 17 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.