aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-09-23 14:47:18 +0100
committerDave Arter <davea@mysociety.org>2016-09-23 14:47:18 +0100
commita261903bf36cc3444a0d58cb39a927b7927b5f92 (patch)
tree05bcd5d6ed9c089a516377615870028af4146d96 /perllib/FixMyStreet/App/Controller/Admin.pm
parent78b34d4543c1c3808851351a9f083789a99c72c9 (diff)
parent8471a8500e081d812e8e63d644d7bdcdf1a793ce (diff)
Merge branch 'issues/forcouncils/56-user-reputation'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 46ac10d36..8ec9eeaab 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -385,6 +385,9 @@ sub update_contacts : Private {
else {
$contact->unset_extra_metadata( 'inspection_required' );
}
+ if ( $c->get_param('reputation_threshold') ) {
+ $contact->set_extra_metadata( reputation_threshold => int($c->get_param('reputation_threshold')) );
+ }
if ( %errors ) {
$c->stash->{updated} = _('Please correct the errors below');