aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-24 16:35:56 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-24 16:35:56 +0000
commit893458844bc54aefefcd8fb6b5aaabf7fa82d7de (patch)
treeb31400a62d27d5e9cb686f1767471f4670febff6
parent04270cd7ad59d6896e7eb5f2e00c5546aba17633 (diff)
Detect division better, in cases where it has no subdivision.
-rw-r--r--templates/web/zurich/admin/body.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/zurich/admin/body.html b/templates/web/zurich/admin/body.html
index dd1b0b844..764ad9bd8 100644
--- a/templates/web/zurich/admin/body.html
+++ b/templates/web/zurich/admin/body.html
@@ -7,7 +7,7 @@
</p>
[% END %]
-[% IF admin_type == 'super' AND body.parent AND body.bodies # A division %]
+[% IF admin_type == 'super' AND body.parent AND NOT body.parent.parent # A division %]
<table cellspacing="0" cellpadding="2" border="1">
<tr>
<th>[% loc('Category') %]</th>