diff options
author | Struan Donald <struan@exo.org.uk> | 2019-05-30 12:35:59 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-06-04 14:54:52 +0100 |
commit | 4f7985b6398e63fdc138ec4b74f175c2b9c2e006 (patch) | |
tree | 95292efb56b91006326932ab80e6d67db441c872 | |
parent | f552249aacbafd785b2827086f67a4d34b887dd8 (diff) |
prefer cobrand council name in report as dropdown
Fall back to body name if the body doesn't have a cobrand
-rw-r--r-- | templates/web/base/report/new/form_user_loggedin.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/report/new/form_user_loggedin.html b/templates/web/base/report/new/form_user_loggedin.html index 37f0c6f0b..1016c5c47 100644 --- a/templates/web/base/report/new/form_user_loggedin.html +++ b/templates/web/base/report/new/form_user_loggedin.html @@ -25,7 +25,7 @@ <option value="another_user">[% loc('Another user') %]</option> [% END %] [% IF js || can_contribute_as_body %] - <option value="body" [% c.user.from_body AND ( c.user.has_body_permission_to('planned_reports') || c.user.has_body_permission_to('default_to_body') ) ? 'selected' : '' %]>[% c.user.from_body.name %]</option> + <option value="body" [% c.user.from_body AND ( c.user.has_body_permission_to('planned_reports') || c.user.has_body_permission_to('default_to_body') ) ? 'selected' : '' %]>[% c.user.from_body.get_cobrand_handler ? c.user.from_body.get_cobrand_handler.council_name : c.user.from_body.name %]</option> [% END %] </select> [% END %] |