aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Parkes <duncan@mysociety.org>2010-12-25 00:52:28 +0000
committerDuncan Parkes <duncan@mysociety.org>2010-12-25 00:52:28 +0000
commitfff9cd0b2796dd97db96846b6732e2281e038cc6 (patch)
tree98a1ad9b92df1d5d0432534a63d0c4493120f8c2
parent8883b92d0cb040940852e18353d6455a2beb959f (diff)
Change state to 'confirmed' after setting querystring.
-rwxr-xr-xweb/rss.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/rss.cgi b/web/rss.cgi
index 0ae8b5dc0..a716d93e9 100755
--- a/web/rss.cgi
+++ b/web/rss.cgi
@@ -74,11 +74,12 @@ sub rss_local_problems {
$d_str = "/$d" if $d;
my $state = $q->param('state') || 'all';
$state = 'all' unless $state =~ /^(all|open|fixed)$/;
- $state = 'confirmed' if $state eq 'open';
# state is getting lost in the redirects. Add it on to the end as a query
my $state_qs = "?state=$state" unless $state eq 'all';
+ $state = 'confirmed' if $state eq 'open';
+
my $cobrand = Page::get_cobrand($q);
my $base = Cobrand::base_url($cobrand);
if ($lat) { # In the UK, it'll never be 0 :)