diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-05-13 13:09:53 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-05-13 13:09:53 +0100 |
commit | 478d7813d057c7c7c2628eacb92d558352e29500 (patch) | |
tree | cb5874aec1b49dc252c8dd047bbfece839e5ade8 /perllib/FixMyStreet/App | |
parent | 47494a7c801bd9e87d545d1b1e4e09cfe76bf30a (diff) |
No agency in Zurich.
Diffstat (limited to 'perllib/FixMyStreet/App')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Open311.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Open311.pm b/perllib/FixMyStreet/App/Controller/Open311.pm index 127f9b8f5..f3841acef 100644 --- a/perllib/FixMyStreet/App/Controller/Open311.pm +++ b/perllib/FixMyStreet/App/Controller/Open311.pm @@ -248,11 +248,15 @@ sub output_requests : Private { 'service_code' => [ $problem->category ], 'service_name' => [ $problem->category ], # 'service_notice' => [ {} ], - 'agency_responsible' => $problem->bodies , # FIXME Not according to Open311 v2 # 'zipcode' => [ {} ], 'interface_used' => [ $problem->service ], # Not in Open311 v2 }; + if ( $c->cobrand->moniker ne 'zurich' ) { # XXX + # FIXME Not according to Open311 v2 + $request->{agency_responsible} = $problem->bodies; + } + if ( !$problem->anonymous ) { # Not in Open311 v2 $request->{'requestor_name'} = [ $problem->name ]; |