aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Problems.pm
diff options
context:
space:
mode:
authorlouise <louise>2009-07-01 13:02:07 +0000
committerlouise <louise>2009-07-01 13:02:07 +0000
commit768584503fa26f8849a57d1c8bdf4f508b2f0cf2 (patch)
treec9b2aba3509c1113eae189c0d17b4fc9f8e31b2f /perllib/Problems.pm
parente1fbe927ce523c4933114cc9dbae58b7701a02ec (diff)
Add default service to api data, set header later
Diffstat (limited to 'perllib/Problems.pm')
-rw-r--r--perllib/Problems.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/Problems.pm b/perllib/Problems.pm
index f34e4af9b..098572917 100644
--- a/perllib/Problems.pm
+++ b/perllib/Problems.pm
@@ -6,7 +6,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: Problems.pm,v 1.15 2009-07-01 12:52:41 louise Exp $
+# $Id: Problems.pm,v 1.16 2009-07-01 13:02:07 louise Exp $
#
package Problems;
@@ -194,6 +194,9 @@ sub problems_matching_criteria{
if ($problem->{anonymous} == 1){
$problem->{name} = '';
}
+ if ($problem->{service} == ''){
+ $problem->{service} = 'Web interface';
+ }
if ($problem->{council}) {
$problem->{council} =~ s/\|.*//g;
my @council_ids = split /,/, $problem->{council};