Ticket #747 (closed defect: fixed)
[PATCH] Flash precedence fix
|Reported by:||andrey.lebedev@…||Owned by:||anonymous|
Patch attached fixes a subtle bug in turbogears.flash mechanism:
If a controller method sets a flash message and returns dictionary, flash message should be visible on rendered template. Currently turbogears works like this, with the only exception: if tg_flash cookie exists (it was set in one of the previous requests ), it is used as flash message, regardless of what was set in current request.
Attached patch fixes this behavour: the latest flash will be displayed. Unit test included.
- Summary changed from Flash precedence fix to [PATCH] Flash precedence fix
- Status changed from closed to reopened
- Resolution fixed deleted