diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 744344358..f5def5d96 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -342,7 +342,8 @@ sub initialize_report : Private { } } } - else { + + if ( !$report ) { # If we didn't find a partial then create a new one $report = $c->model('DB::Problem')->new( {} ); |