From 7386d5ec1cd9eef61762baddd0724fbb8313e186 Mon Sep 17 00:00:00 2001 From: Katie Smith Date: Thu, 11 Jan 2018 17:19:24 +0000 Subject: [PATCH] Fix 500 error from notifications/letter.json page The letters notification page makes ajax calls to update the status - these were failing because it's making a POST request without a CSRF token. (The email and SMS notification pages contain a search form that includes the hidden CSRF input, so this was only occurring with the letters page.) This commit adds a hidden form for the letters page which just contains the CSRF token. --- app/templates/views/notifications.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/templates/views/notifications.html b/app/templates/views/notifications.html index 81c8c30d8..c1eb2985d 100644 --- a/app/templates/views/notifications.html +++ b/app/templates/views/notifications.html @@ -42,6 +42,10 @@ + {% else %} +
+ +
{% endif %}