Modify ↓
Opened 14 years ago
Closed 14 years ago
#7490 closed defect (fixed)
[Patch] BatchModifyPlugin doesn't work with Trac 0.11.x
Reported by: | Jun Omae | Owned by: | CuriousCurmudgeon |
---|---|---|---|
Priority: | normal | Component: | BatchModifyPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I use batchmodifyplugin/0.11/trunk@8347 and Trac 0.11.7. When I submit "Batch Modify" form, I get the following error.
2010-08-12 16:47:51,177 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Trac-0.11.7.ja1-py2.4.egg/trac/web/main.py", line 450, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/Trac-0.11.7.ja1-py2.4.egg/trac/web/main.py", line 176, in dispatch chosen_handler) File "/usr/lib/python2.4/site-packages/Trac-0.11.7.ja1-py2.4.egg/trac/web/main.py", line 296, in _pre_process_request chosen_handler = filter_.pre_process_request(req, chosen_handler) File "build/bdist.linux-x86_64/egg/batchmod/web_ui.py", line 68, in pre_process_request File "build/bdist.linux-x86_64/egg/batchmod/web_ui.py", line 150, in process_request File "build/bdist.linux-x86_64/egg/batchmod/web_ui.py", line 177, in _save_ticket_changes NameError: global name 'selectedTickets' is not defined
The patch fixes the issue.
-
batchmod/web_ui.py
146 146 if not selectedTickets: 147 147 raise TracError, 'No tickets selected' 148 148 149 self._save_ticket_changes(req, selectedTickets, tickets,150 values, comment )149 self._save_ticket_changes(req, env, log, selectedTickets, tickets, 150 values, comment, modify_changetime) 151 151 152 152 def _get_new_ticket_values(self, req, env): 153 153 """Pull all of the new values out of the post data.""" … … 172 172 if values.has_key('status') and values['status'] is not 'closed': 173 173 values['resolution'] = '' 174 174 175 def _save_ticket_changes(self, req, selected_tickets, tickets,176 new_values, comment):175 def _save_ticket_changes(self, req, env, log, selectedTickets, tickets, 176 values, comment, modify_changetime): 177 177 for id in selectedTickets: 178 178 if id in tickets: 179 179 t = Ticket(env, int(id))
Attachments (1)
Change History (8)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Status: | new → assigned |
---|
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks for the patch.
comment:4 Changed 14 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:7 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
(In [8358]) refs #7490