aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm1
-rw-r--r--perllib/Open311.pm6
2 files changed, 6 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index a419e9cc1..bf9f171be 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -809,6 +809,7 @@ sub process_report : Private {
$report->postcode( $params{pc} );
$report->latitude( $c->stash->{latitude} );
$report->longitude( $c->stash->{longitude} );
+ $report->send_questionnaire( $c->cobrand->send_questionnaires() );
# set some simple bool values (note they get inverted)
$report->anonymous( $params{may_show_name} ? 0 : 1 );
diff --git a/perllib/Open311.pm b/perllib/Open311.pm
index c8289a442..4f9b948ce 100644
--- a/perllib/Open311.pm
+++ b/perllib/Open311.pm
@@ -173,13 +173,17 @@ sub _generate_service_request_description {
my $extra = shift;
my $description = "";
- if ($problem->cobrand eq 'fixmystreet') {
+ if ($extra->{easting_northing}) { # Proxy for cobrand being in the UK
$description .= "detail: " . $problem->detail . "\n\n";
$description .= "url: " . $extra->{url} . "\n\n";
$description .= "Submitted via FixMyStreet\n";
if ($self->extended_description ne 'oxfordshire') {
$description = "title: " . $problem->title . "\n\n$description";
}
+ } elsif ($problem->cobrand eq 'fixamingata') {
+ $description .= "Beskrivning: " . $problem->detail . "\n\n";
+ $description .= "Länk till ärendet: " . $extra->{url} . "\n\n";
+ $description .= "Skickad via FixaMinGata\n";
} else {
$description .= $problem->title . "\n\n";
$description .= $problem->detail . "\n\n";