Opened 8 years ago

Last modified 6 years ago

#12084 closed defect

NameError: global name 'otherID' is not defined — at Initial Version

Reported by: anonymous Owned by: Chris Nelson
Priority: normal Component: ValuePropagationPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


Prerequisite: trac.ini ... [value_propagation] r1.fields=hours r1.method.hours=sum r1.type=link

Reproduction steps:

  1. New Ticket
  2. Setting Estimation Hours
  3. Adding Hours
  4. Set Parent Ticket Relation

Setting the parent ticket from an existing ticket with an estimation, value propagation plugin shows an error that 'otherID' is not defined.

2014-12-01 13:53:58,016 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/trac/web/", line 497, in _dispatch_request
  File "/usr/lib/python2.7/site-packages/trac/web/", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.7/site-packages/trac/ticket/", line 179, in process_request
    return self._process_ticket_request(req)
  File "/usr/lib/python2.7/site-packages/trac/ticket/", line 614, in _process_ticket_request
    self._do_save(req, ticket, action)
  File "/usr/lib/python2.7/site-packages/trac/ticket/", line 1328, in _do_save
  File "/usr/lib/python2.7/site-packages/trac/ticket/", line 365, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File "build/bdist.linux-x86_64/egg/valuepropagation/", line 361, in ticket_changed
    self.types[v](p[0], ticket, old_values)
  File "build/bdist.linux-x86_64/egg/valuepropagation/", line 251, in _handle_link
    self._propagate(r, ticket, old_values, oldOtherID, newOtherID)
  File "build/bdist.linux-x86_64/egg/valuepropagation/", line 275, in _propagate
    if newOtherID == oldOtherID or otherID == '':
NameError: global name 'otherID' is not defined

Change History (0)

Note: See TracTickets for help on using tickets.