aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-30 18:19:29 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-30 18:19:29 +0100
commita9f0420d914d29f91e4249bc891a44221ea35e25 (patch)
tree57abcf80bbc94d58e069ba2c46ffed6ff0ba69b8
parentfbee20dd5eac49e0c6ad7b6ffefec20409bc54f6 (diff)
check we have a council user before comparing with problem council
-rw-r--r--templates/web/default/admin/list_updates.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/default/admin/list_updates.html b/templates/web/default/admin/list_updates.html
index c02a0229c..bc871d80d 100644
--- a/templates/web/default/admin/list_updates.html
+++ b/templates/web/default/admin/list_updates.html
@@ -29,7 +29,7 @@
<td>[% PROCESS format_time time=update.created %]</td>
<td>[% IF update.anonymous %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]</td>
<td>[% IF update.user.id == update.problem.user_id %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]</td>
- <td>[% IF update.user.from_council == update.problem.council %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]</td>
+ <td>[% IF update.user.from_council && update.user.from_council == update.problem.council %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]</td>
<td>[% update.cobrand %]<br>[% update.cobrand_data | html %]</td>
<td>[% update.text | html %]</td>
<td><a href="[% c.uri_for( 'update_edit', update.id ) %]">[% loc('Edit') %]</a></td>