Bug 8130: [SIGNED-OFF] Followup - Empty file upload error never displays.
http://bugs.koha-community.org/show_bug.cgi?id=8130 Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
This commit is contained in:
parent
05d952a4a6
commit
d5c51417b5
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ else {
|
||||||
my $filename = $cgi->param('uploadfile');
|
my $filename = $cgi->param('uploadfile');
|
||||||
my $mimetype = $cgi->uploadInfo($filename)->{'Content-Type'};
|
my $mimetype = $cgi->uploadInfo($filename)->{'Content-Type'};
|
||||||
|
|
||||||
$errors{'empty_upload'} = 1 unless ( length($uploaded_file) > 0 );
|
$errors{'empty_upload'} = 1 if ( -z $uploaded_file );
|
||||||
|
|
||||||
if (%errors) {
|
if (%errors) {
|
||||||
$template->param( errors => %errors );
|
$template->param( errors => %errors );
|
||||||
|
|
Loading…
Reference in a new issue