aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-12-21 17:11:31 +0000
committerStruan Donald <struan@exo.org.uk>2012-12-21 17:11:31 +0000
commit12a509230afb81a83e5cb2ebdf3d157cfa8e9794 (patch)
treef2fc8c16d6d10fab56605685a9af2511e1c71c5f
parentab7afc8736526e260894d09d5ee68ab91a644348 (diff)
store service param if it is sent
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 7759bb938..31c184733 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -777,6 +777,7 @@ sub process_report : Private {
'may_show_name', #
'category', #
'partial', #
+ 'service', #
);
# load the report
@@ -801,6 +802,9 @@ sub process_report : Private {
}
$report->detail( $detail );
+ # mobile device type
+ $report->service( $params{service} ) if $params{service};
+
# set these straight from the params
$report->category( _ $params{category} ) if $params{category};