aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2007-08-17 11:38:07 +0000
committermatthew <matthew>2007-08-17 11:38:07 +0000
commit8ad2f36dfad7d716db834b4ab405708ebf9c06c3 (patch)
tree25f99f19cbf85060db36d905a430d00f84d5d1bc
parent987cf40f58e1c110e929c0323d706eadc23a98d1 (diff)
Fix "More problems nearby" link not working after submitting the
problem update form with an error.
-rwxr-xr-xweb/index.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi
index d8e5fdcba..4d56e1eae 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.155 2007-08-15 11:31:45 matthew Exp $
+# $Id: index.cgi,v 1.156 2007-08-17 11:38:07 matthew Exp $
use strict;
require 5.8.0;
@@ -703,7 +703,7 @@ sub display_problem {
# Try and have pin near centre of map
$x_tile -= 1 if $x - $x_tile < 0.5;
$y_tile -= 1 if $y - $y_tile < 0.5;
- my $back = NewURL($q, id=>undef, x=>$x_tile, y=>$y_tile);
+ my $back = NewURL($q, id=>undef, x=>$x_tile, y=>$y_tile, submit_update=>undef);
$out .= '<p style="padding-bottom: 0.5em; border-bottom: dotted 1px #999999;" align="right"><a href="' . $back . '">More problems nearby</a></p>';
$out .= '<div id="alert_links">';
$out .= '<a id="email_alert" href="/alert?type=updates;id='.$input_h{id}.'">Email me updates</a>';