From 91202939f285e28d81888b40bc70744a3b41ddf9 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 24 Feb 2011 10:10:58 +0000 Subject: Remove unneeded decodes, everything is already decoded by then, and fix for passing decoded strings to MaPit. --- web/reports.cgi | 1 - 1 file changed, 1 deletion(-) (limited to 'web/reports.cgi') diff --git a/web/reports.cgi b/web/reports.cgi index 784c52917..6c26de91d 100755 --- a/web/reports.cgi +++ b/web/reports.cgi @@ -61,7 +61,6 @@ sub main { my $areas_f = mySociety::MaPit::call('areas', $fylke, type => \@area_types); if (keys %$areas_f == 1) { ($fylke) = values %$areas_f; - $kommune = decode_utf8($kommune); foreach (values %$areas_k) { if ($_->{name} eq $kommune && $_->{parent_area} == $fylke->{id}) { $one_council = $_; -- cgit v1.2.3 From 8033a55579ccecb92c781528fdeebd666f077978 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 3 Mar 2011 14:03:12 +0000 Subject: Work if precise name given too. --- web/reports.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/reports.cgi') diff --git a/web/reports.cgi b/web/reports.cgi index 6c26de91d..69a8d8240 100755 --- a/web/reports.cgi +++ b/web/reports.cgi @@ -83,7 +83,7 @@ sub main { $area_name = $one_council->{name}; } else { foreach (keys %$areas) { - if ($areas->{$_}->{name} =~ /^\Q$q_council\E (Borough|City|District|County) Council$/) { + if ($areas->{$_}->{name} eq $q_council || $areas->{$_}->{name} =~ /^\Q$q_council\E (Borough|City|District|County) Council$/) { $one_council = $areas->{$_}; $area_type = $areas->{$_}->{type}; $area_name = $q_council; -- cgit v1.2.3 From bdf736a0af958c7abdff3c4f53d998891c61facc Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 21 Mar 2011 13:16:52 +0000 Subject: .no CSS update, missing translated string. --- web/reports.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/reports.cgi') diff --git a/web/reports.cgi b/web/reports.cgi index 69a8d8240..22dbe344a 100755 --- a/web/reports.cgi +++ b/web/reports.cgi @@ -330,7 +330,7 @@ sub list_problems { $out .= '
  • '; $out .= ent($_->{title}); $out .= ''; - $out .= ' (sent to both)' if $_->{councils}>1; + $out .= ' ' . _('(sent to both)') . '' if $_->{councils}>1; $out .= ' ' . _('(not sent to council)') . '' if $_->{councils}==0 && $q->{site} ne 'emptyhomes'; $out .= '
    ' . ent($_->{detail}) . '' if $all; $out .= '
  • '; -- cgit v1.2.3