Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1348 closed defect (fixed)

[patch] ifchanged tag renders content twice

Reported by: j.rademaker@… Owned by: adrian
Component: Template system Version: master
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

For no apparent reason the {% ifchanged %} tag renders content twice which might lead to unexpected behavior as methods inside the tag are executed twice, eg.

{% ifchanged %} {{ object.do_something }} {% endifchanged %}

Attachments (1)

defaulttags.py.diff (626 bytes) - added by j.rademaker@… 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by j.rademaker@…

comment:1 Changed 8 years ago by adrian

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

(In [2326]) Fixed #1348 -- {% ifchanged %} tag no longer renders content twice. Thanks, j.rademaker

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.