id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 6322 ifchanged doesn't properly reset itself if not evaluated each time through the loop Ned Batchelder nobody "When using ifchanged in a doubly-nested loop, the value is only reset to None on the inner loop's first iteration. But if the ifchanged tag is inside another conditional, it may not be evaluated on the first iteration. This can mean the value isn't properly reset: {{{ {% for data in datalist %} {% for c,d in data %} {% if c %} {% ifchanged %}{{ d }}{% endifchanged %} {% endif %} {% endfor %} {% endfor %} }}} The fix is to not examine forloop.first explicitly, but to annotate the forloop context. " closed Template system dev fixed Ready for checkin 1 0 0 0 0 0