Code

Opened 6 years ago

Closed 6 years ago

#5969 closed (fixed)

Variable name resolution broken as of 6682?

Reported by: zgoda Owned by: nobody
Component: Template system Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

The code that worked fine before [6682] now throws KeyError:

{% blocktrans count comment_count as counter %}1 comment{% plural %}{{ counter }} comments{% endblocktrans %}
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render_node
  822. result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/templatetags/i18n.py" in render
  84. return result % data

  KeyError at /
  u'counter'

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by mtredinnick

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

(In [6689]) Fixed #5969 -- Corrected a problem introduced in [6682].

*sigh* As usual, the one case I forget to test turned out to be broken.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


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

 
Note: See TracTickets for help on using tickets.