From f3558a8f1c3659bf8c4f4c8b5062343a9e55d533 Mon Sep 17 00:00:00 2001 From: Alice Heaton Date: Wed, 4 Jun 2014 13:03:52 +0100 Subject: [PATCH] [#1743] Fetch list of flash messages from the loop itself to avoid issues with variables and block scopes. --- ckan/templates/page.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ckan/templates/page.html b/ckan/templates/page.html index 18f14a82902..c92b5fbe5e9 100644 --- a/ckan/templates/page.html +++ b/ckan/templates/page.html @@ -21,10 +21,9 @@
{% block main_content %} {% block flash %} - {% set flash_messages = h.flash.pop_messages() | list %}
{% block flash_inner %} - {% for message in flash_messages %} + {% for message in h.flash.pop_messages() | list %}
{{ h.literal(message) }}