Bug 19200: (QA follow-up) Simplify call to GetBasketAsCSV

If no profile_id is passed, GetBasketAsCSV will fallback to default itself.
No need to make the distinction in basket.pl.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2017-12-22 11:20:13 +01:00 committed by Jonathan Druart
parent 809175f3d4
commit 7e21ffe6c5
1 changed files with 1 additions and 7 deletions

View File

@ -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 {