Modify

Opened 7 years ago

Closed 7 years ago

#2221 closed defect (fixed)

IniAdmin Plugin Apply changes button bug

Reported by: anonymous Owned by: athomas
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 7 years ago by athomas

Fixed in r3024.

comment:2 Changed 7 years ago by athomas

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.