aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
-rw-r--r--perllib/FixMyStreet/Cobrand/.gitignore1
2 files changed, 4 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} ) );
diff --git a/perllib/FixMyStreet/Cobrand/.gitignore b/perllib/FixMyStreet/Cobrand/.gitignore
new file mode 100644
index 000000000..6247c81bc
--- /dev/null
+++ b/perllib/FixMyStreet/Cobrand/.gitignore
@@ -0,0 +1 @@
+Cities.pm