From fc7935e5428ef80ecea46211fd4faf317079cd9c Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 13 Jul 2011 12:02:53 +0100 Subject: Test to close #18 (was fixed in Catalyst migration). --- perllib/FixMyStreet/App/Controller/Report/New.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm') 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); -- cgit v1.2.3