View | Details | Raw Unified | Return to bug 19200
Collapse All | Expand All

(-)a/acqui/basket.pl (-5 / +6 lines)
Lines 170-180 if ( $op eq 'delete_confirm' ) { Link Here
170
        -type       => 'text/csv',
170
        -type       => 'text/csv',
171
        -attachment => 'basket' . $basket->{'basketno'} . '.csv',
171
        -attachment => 'basket' . $basket->{'basketno'} . '.csv',
172
    );
172
    );
173
    if ( $query->param('csv_profile') eq 'default'){
173
    my $csv_profile_id = $query->param('csv_profile');
174
        print GetBasketAsCSV($query->param('basketno'), $query);
174
    if (defined $csv_profile_id) {
175
        # using a csv profile
176
        print GetBasketAsCSV(scalar $query->param('basketno'), $query, $csv_profile_id);
175
    } else {
177
    } else {
176
        my $csv_profile_id = $query->param('csv_profile');
178
        # using default
177
        print  GetBasketAsCSV($query->param('basketno'), $query, $csv_profile_id);
179
        print GetBasketAsCSV(scalar $query->param('basketno'), $query);
178
    }
180
    }
179
    exit;
181
    exit;
180
} elsif ($op eq 'email') {
182
} elsif ($op eq 'email') {
181
- 

Return to bug 19200