aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-07-13 12:02:53 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-07-13 12:02:53 +0100
commitfc7935e5428ef80ecea46211fd4faf317079cd9c (patch)
treebd0b1637e52f17158642baf902e72f98c14b96ff /perllib/FixMyStreet/App/Controller
parentdb3e6eec80cc6365a7d63035d8df7949c7a4ccf7 (diff)
Test to close #18 (was fixed in Catalyst migration).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 01cad9bba..ac8143718 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -227,8 +227,8 @@ sub report_import : Path('/import') {
);
# If there was a photo add that too
- if ( my $fileid = $c->stash->{upload_fileid} ) {
- my $file = file( $c->config->{UPLOAD_CACHE}, "$fileid.jpg" );
+ if ( $photo ) {
+ my $file = file( $c->config->{UPLOAD_CACHE}, "$photo.jpg" );
my $blob = $file->slurp;
$file->remove;
$report->photo($blob);