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

(-)a/C4/ImportBatch.pm (-1 / +1 lines)
Lines 1118-1124 sub GetImportRecordsRange { Link Here
1118
    ( $order_by ) = grep( /^$order_by$/, qw( import_record_id title status overlay_status ) ) ? $order_by : 'import_record_id';
1118
    ( $order_by ) = grep( /^$order_by$/, qw( import_record_id title status overlay_status ) ) ? $order_by : 'import_record_id';
1119
1119
1120
    my $order_by_direction =
1120
    my $order_by_direction =
1121
      uc( $parameters->{order_by_direction} ) eq 'DESC' ? 'DESC' : 'ASC';
1121
      uc( $parameters->{order_by_direction} // 'ASC' ) eq 'DESC' ? 'DESC' : 'ASC';
1122
1122
1123
    $order_by .= " $order_by_direction, authorized_heading" if $order_by eq 'title';
1123
    $order_by .= " $order_by_direction, authorized_heading" if $order_by eq 'title';
1124
1124
(-)a/tools/batch_records_ajax.pl (-3 / +2 lines)
Lines 46-53 my @sort_columns = Link Here
46
46
47
my $import_batch_id   = $input->param('import_batch_id');
47
my $import_batch_id   = $input->param('import_batch_id');
48
my $offset            = $input->param('iDisplayStart');
48
my $offset            = $input->param('iDisplayStart');
49
my $results_per_page  = $input->param('iDisplayLength');
49
my $results_per_page  = $input->param('iDisplayLength') // -1;
50
my $sorting_column    = $sort_columns[ $input->param('iSortCol_0') ];
50
my $sorting_column    = $sort_columns[ $input->param('iSortCol_0') // 0 ];
51
my $sorting_direction = $input->param('sSortDir_0');
51
my $sorting_direction = $input->param('sSortDir_0');
52
52
53
$results_per_page = undef if ( $results_per_page == -1 );
53
$results_per_page = undef if ( $results_per_page == -1 );
54
- 

Return to bug 19937