Bug 4188 Valid PDF file name when printing basket group with no name
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
d4f6974581
commit
2e6f91dc71
|
|
@ -238,7 +238,10 @@ sub printbasketgrouppdf{
|
|||
}
|
||||
$orders{$basket->{basketno}}=\@ba_orders;
|
||||
}
|
||||
print $input->header( -type => 'application/pdf', -attachment => $basketgroup->{name}.'.pdf' );
|
||||
print $input->header(
|
||||
-type => 'application/pdf',
|
||||
-attachment => ( $basketgroup->{name} || $basketgroupid ) . '.pdf'
|
||||
);
|
||||
my $pdf = printpdf($basketgroup, $bookseller, $baskets, \%orders, $bookseller->{gstrate} || C4::Context->preference("gist")) || die "pdf generation failed";
|
||||
print $pdf;
|
||||
exit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue