aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-14 15:26:39 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-14 15:26:39 +0100
commitf81232efccfa9ce54f8c3613f1c674dfd179f46a (patch)
tree07594939ff9c29c178d6f60ab1fefd51af6b3137
parentaefe47ffe17ce5c727380ef8e5e20fbdd19ed281 (diff)
Fix for using outdated tokens
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm3
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( {} );