X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=acqui%2Fbasket.pl;h=92fae60a0ad151fa7dd4654f5ecefbbbbc3ef895;hb=7e21ffe6c5e09ad1f5a1023e32be88f5a43a9d68;hp=8df5f8b6eab7cf99362daf7b341569e006e40a92;hpb=809175f3d4b0293e934e56654994797f38330e08;p=koha.git diff --git a/acqui/basket.pl b/acqui/basket.pl index 8df5f8b6ea..92fae60a0a 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -171,13 +171,7 @@ if ( $op eq 'delete_confirm' ) { -attachment => 'basket' . $basket->{'basketno'} . '.csv', ); my $csv_profile_id = $query->param('csv_profile'); - if (defined $csv_profile_id) { - # using a csv profile - print GetBasketAsCSV(scalar $query->param('basketno'), $query, $csv_profile_id); - } else { - # using default - print GetBasketAsCSV(scalar $query->param('basketno'), $query); - } + print GetBasketAsCSV( scalar $query->param('basketno'), $query, $csv_profile_id ); # if no csv_profile_id passed, using default rows exit; } elsif ($op eq 'email') { my $err = eval {