﻿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
2454	[patch] for-loops reset state of inner ifchanged	dummy@…	Adrian Holovaty	"Hi,

I have a use-case of ifchanged which maybe worth to talk about:

Normally ifchanged is placed in a for-loop (or other kind of loop). If this loop is enclosed by an other loop the state of the ifchanged in the inner loop maybe incorrect respective to the outer loop.

Since I'm not really good at explaining this I made two hardcopies which should explain it better. I have a template which display tournaments in the outer loop and within the tournaments a loop of competitions with a competition-date which should only rendered if the competition-date has changed regarding the previous value.

Normally this result in the output of ifchanged-demo1.png . Please look after 'Sparda-Bank West Mannschaftsturnier, Bochum, 16./17.9.2006' In the next line the date 16.09.2006 is missing.

With the patch the result would be shown as in for-reset-ifchanged-demo1.png.

This maybe break some of the normal usecase of ifchanged, so this needs to be reviewed and discussed forther.

Regards,
Dirk

"	enhancement	closed	Template system	dev	normal	fixed			Unreviewed	1	0	0	0	0	0
