diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 7d9e43d82..37a16e17f 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -964,7 +964,11 @@ sub save_user_and_report : Private { # Save or update the user if appropriate if ( $c->cobrand->never_confirm_reports ) { - $report->user->update(); + if ( $report->user->in_storage() ) { + $report->user->update(); + } else { + $report->user->insert(); + } $report->confirm(); } elsif ( !$report->user->in_storage ) { # User does not exist. |