From 2963d527b61f197bd85c851f6e2c092abaa26065 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 21 Mar 2017 10:05:17 -0400 Subject: [PATCH] Bug 18311 - Exporting records without using a file is broken TO test: Try exporting authority records using numbers It wil faill Apply patch It should succeed --- tools/export.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/export.pl b/tools/export.pl index ecf4a04..d0265db 100755 --- a/tools/export.pl +++ b/tools/export.pl @@ -70,7 +70,7 @@ my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( my @branch = $query->multi_param("branch"); my @messages; -if ( $op eq 'export' ) { +if ( $op eq 'export' & $query->param('id_list_file') ) { my $filename = $query->param('id_list_file'); my $mimetype = $query->uploadInfo($filename)->{'Content-Type'}; my @valid_mimetypes = qw( application/octet-stream text/csv text/plain ); -- 2.1.4