diff options
author | Dave Arter <davea@mysociety.org> | 2017-10-05 12:01:26 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2017-10-05 13:01:37 +0100 |
commit | aed38e8dfca568ef4aabd8e222c03c6ac7bb69ad (patch) | |
tree | 36d9275989640c1a892e9f18495991757caedcd6 | |
parent | 60d83f331cd50f0f92f394caac6257e12839bf10 (diff) |
[Oxfordshire] Stop crash on alert signup/update.
This fixes a crash when leaving an update on the Oxfordshire cobrand or
signing up for an alert, as the _email_sent_extra.html template didn’t
have a report to pass through to the cobrand in order to display the
expected response time.
-rw-r--r-- | templates/web/oxfordshire/_email_sent_extra.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/web/oxfordshire/_email_sent_extra.html b/templates/web/oxfordshire/_email_sent_extra.html index 5fdcd3bfd..f01c2d5fb 100644 --- a/templates/web/oxfordshire/_email_sent_extra.html +++ b/templates/web/oxfordshire/_email_sent_extra.html @@ -1 +1,2 @@ -[% INCLUDE '_response_time.html' problem=report %] +[% DEFAULT problem = report %] +[% IF problem %][% INCLUDE '_response_time.html' %][% END %] |