From 9d50dcb1c8947d269df2af3616b9f012dbe63c3e Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 6 Nov 2017 15:33:43 +0000 Subject: do not override template when displaying body contacts as text move setting the body template to before `fetch_contacts` so it doesn't override setting the text only email address template. Fixes #1895 --- t/app/controller/admin.t | 1 + 1 file changed, 1 insertion(+) (limited to 't/app/controller/admin.t') diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index b4fb54686..b63229444 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -289,6 +289,7 @@ subtest 'check text output' => sub { $mech->get_ok('/admin/body/' . $body->id . '?text=1'); is $mech->content_type, 'text/plain'; $mech->content_contains('test category'); + $mech->content_lacks('