aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-18 18:05:18 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-18 18:05:18 +0000
commit386e7edd6d9ff96b771e18e4516ae4ae0a93ce8b (patch)
treed4feb7293eecd961fa10c3f87884a1d4902c3d30
parent495200d34afe198ebf13ab2f2529ad5ce00f9ebd (diff)
Fix default now it's swapped, and extra newline stoppage.
-rw-r--r--perllib/Open311.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/Open311.pm b/perllib/Open311.pm
index 9ed15bb10..7a5493704 100644
--- a/perllib/Open311.pm
+++ b/perllib/Open311.pm
@@ -22,7 +22,7 @@ has success => ( is => 'rw', 'isa' => 'Bool', default => 0 );
has error => ( is => 'rw', 'isa' => 'Str', default => '' );
has always_send_latlong => ( is => 'ro', isa => 'Bool', default => 1 );
has send_notpinpointed => ( is => 'ro', isa => 'Bool', default => 0 );
-has extended_description => ( is => 'ro', isa => 'Bool', default => 0 );
+has extended_description => ( is => 'ro', isa => 'Str', default => 1 );
has use_service_as_deviceid => ( is => 'ro', isa => 'Bool', default => 0 );
has use_extended_updates => ( is => 'ro', isa => 'Bool', default => 0 );
@@ -176,10 +176,9 @@ Submitted via FixMyStreet
EOT
;
if ($self->extended_description ne 'oxfordshire') {
- $description = <<EOT;
+ $description = <<EOT . $description;
title: @{[$problem->title()]}
-$description
EOT
}