Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#2627 closed defect (duplicate)

Cannot delete reports

Reported by: bje@… Owned by: daniel
Priority: normal Milestone:
Component: report system Version: 0.9.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

TracReports cannot be deleted in 0.9.3. Attempting to do so fails when producing the confirm page, giving the error:

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 131, in run
    dispatch_request(req.path_info, req, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/ticket/report.py", line 115, in process_request
    self._render_confirm_delete(req, db, id)
  File "/usr/lib/python2.3/site-packages/trac/ticket/report.py", line 198, in _render_confirm_delete
    req.hdf['report'] = {
AttributeError: 'module' object has no attribute 'row'

Fixed by altering util.row[0] to row[0] on line 201 of source:tags/trac-0.9.3/trac/ticket/report.py:

*** /tmp/report.py      Wed Jan 18 11:51:27 2006
--- report.py   Wed Jan 18 11:51:42 2006
***************
*** 198,204 ****
          req.hdf['report'] = {
              'id': id,
              'mode': 'delete',
!             'title': util.row[0],
              'href': self.env.href.report(id)
          }
  
--- 198,204 ----
          req.hdf['report'] = {
              'id': id,
              'mode': 'delete',
!             'title': row[0],
              'href': self.env.href.report(id)
          }

Attachments (0)

Change History (1)

comment:1 by Alec Thomas, 19 years ago

Resolution: duplicate
Status: newclosed

Already reported in #2613. This is fixed in trunk and 0.9-stable.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.