diff options
author | matthew <matthew> | 2007-02-09 12:20:05 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-02-09 12:20:05 +0000 |
commit | be6a6c7fdeb4264ec027fabe4e2c007e74dc0f20 (patch) | |
tree | 93ca0517dff7a6e3f865b8546d4006b097135298 | |
parent | 9cc8c7137860e8ab536d2dfe8eef31cfcea7e375 (diff) |
Only show blue pin on individual problem page.
-rwxr-xr-x | web/index.cgi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi index d9e86a5e3..3b0540202 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: index.cgi,v 1.78 2007-02-09 11:32:53 matthew Exp $ +# $Id: index.cgi,v 1.79 2007-02-09 12:20:05 matthew Exp $ # TODO # Nothing is done about the update checkboxes - not stored anywhere on anything! @@ -605,10 +605,13 @@ sub map_pins { my $py = os_to_px($_->{northing}, $y); if ($_->{id}==$id) { $pins .= display_pin($q, $px, $py, 'blue'); - } else { + } elsif (!$id) { $pins .= display_pin($q, $px, $py, 'red', $count_prob++); } } + + return ($pins) if $id; + my $current = []; if (@$current_map < 9) { my $limit = 9 - @$current_map; |