aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xVagrantfile2
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 80e79846d..505883aa0 100755
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -50,7 +50,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
sed -i -r -e "s,^( *BASE_URL: .*)',\\1:3000'," fixmystreet/conf/general.yml
fi
# Create a superuser for the admin
- fixmystreet/bin/createsuperuser superuser@example.org password
+ su vagrant -c 'fixmystreet/bin/createsuperuser superuser@example.org password'
if [ $SUCCESS -eq 0 ]; then
# All done
echo "****************"
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 44a653d62..ea8633db0 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -411,7 +411,7 @@ sub update_contacts : Private {
$c->forward('/auth/check_csrf_token');
my $params = $c->forward( 'body_params' );
- unless ( keys $c->stash->{body_errors} ) {
+ unless ( keys %{$c->stash->{body_errors}} ) {
$c->stash->{body}->update( $params );
my @current = $c->stash->{body}->body_areas->all;
my %current = map { $_->area_id => 1 } @current;