diff options
author | Dave Arter <davea@mysociety.org> | 2020-01-06 09:55:12 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-01-06 09:55:12 +0000 |
commit | 9d876bf9829ec3b00240707ff4ba04b1a1265317 (patch) | |
tree | 98d900a05b8082b410c7535f540c32a29b9cc031 /t/app/controller/json.t | |
parent | 36fc093d2fe61bca3cbf44d2a6e9c8bc795714cd (diff) |
Fix 'all reports' link for users with categories but no from_body
In the rare situation that a user has no from_body set but does have
categories set in their extra metadata, the 'All reports' link would
point to /my/inspector_redirect but this URL would 404 if the user
did not have a from_body. This commit updates the template to use the
same logic when generating the 'all reports' link, so users without
from_body will never be sent to /my/inspector_redirect.
Fixes #2815.
Diffstat (limited to 't/app/controller/json.t')
0 files changed, 0 insertions, 0 deletions