aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-11 13:16:42 +0100
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-11 13:16:42 +0100
commitac527fae7168c2c4f0dc5dcaeb2146ad99c1f835 (patch)
treef6d6f08568cad95c6ff835b8557a64dab43ef971 /perllib/FixMyStreet/App/Controller/Report/New.pm
parentb453750d1f43bd7b2d9c720f7cd612b7901b059d (diff)
parent71ae36012ab91254910247a48824983c3d6a8f37 (diff)
Merge commit 'origin/migrate_to_catalyst' into migrate_to_catalyst
Conflicts: templates/web/default/report/new/report_new.html
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 71650c0e4..c32508cc5 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -841,12 +841,14 @@ sub process_report : Private {
$report->latitude( $c->stash->{latitude} );
$report->longitude( $c->stash->{longitude} );
+ # Capture wether the may was used
+ $report->used_map( $params{skipped} ? 0 : 1 );
+
# Short circuit unless the form has been submitted
return 1 unless $params{submit_problem};
# set some simple bool values (note they get inverted)
$report->anonymous( $params{may_show_name} ? 0 : 1 );
- $report->used_map( $params{skipped} ? 0 : 1 );
# clean up text before setting
$report->title( _cleanup_text( $params{title} ) );