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

(-)a/acqui/finishreceive.pl (-1 / +1 lines)
Lines 65-71 my $new_ordernumber = $ordernumber; Link Here
65
if ($quantityrec > $origquantityrec ) {
65
if ($quantityrec > $origquantityrec ) {
66
    my @received_items = ();
66
    my @received_items = ();
67
    if(C4::Context->preference('AcqCreateItem') eq 'ordering') {
67
    if(C4::Context->preference('AcqCreateItem') eq 'ordering') {
68
        @received_items = $input->param('items_to_receive');
68
        @received_items = $input->multi_param('items_to_receive');
69
        my @affects = split q{\|}, C4::Context->preference("AcqItemSetSubfieldsWhenReceived");
69
        my @affects = split q{\|}, C4::Context->preference("AcqItemSetSubfieldsWhenReceived");
70
        if ( @affects ) {
70
        if ( @affects ) {
71
            my $frameworkcode = GetFrameworkCode($biblionumber);
71
            my $frameworkcode = GetFrameworkCode($biblionumber);
(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 384-390 if ( C4::Context->preference('defaultSortField') Link Here
384
      . C4::Context->preference('defaultSortOrder');
384
      . C4::Context->preference('defaultSortOrder');
385
}
385
}
386
386
387
@sort_by = $cgi->param('sort_by');
387
@sort_by = $cgi->multi_param('sort_by');
388
$sort_by[0] = $default_sort_by unless $sort_by[0];
388
$sort_by[0] = $default_sort_by unless $sort_by[0];
389
foreach my $sort (@sort_by) {
389
foreach my $sort (@sort_by) {
390
    $template->param($sort => 1) if $sort;
390
    $template->param($sort => 1) if $sort;
(-)a/labels/label-create-csv.pl (-2 / +2 lines)
Lines 37-44 my @item_numbers; Link Here
37
$batch_id    = $cgi->param('batch_id') if $cgi->param('batch_id');
37
$batch_id    = $cgi->param('batch_id') if $cgi->param('batch_id');
38
my $template_id = $cgi->param('template_id') || undef;
38
my $template_id = $cgi->param('template_id') || undef;
39
my $layout_id   = $cgi->param('layout_id') || undef;
39
my $layout_id   = $cgi->param('layout_id') || undef;
40
@label_ids   = $cgi->param('label_id') if $cgi->param('label_id');
40
@label_ids   = $cgi->multi_param('label_id') if $cgi->param('label_id');
41
@item_numbers  = $cgi->param('item_number') if $cgi->param('item_number');
41
@item_numbers  = $cgi->multi_param('item_number') if $cgi->param('item_number');
42
42
43
my $items = undef;
43
my $items = undef;
44
44
(-)a/labels/label-create-pdf.pl (-2 / +2 lines)
Lines 45-52 $batch_id = $cgi->param('batch_id') if $cgi->param('batch_id'); Link Here
45
my $template_id = $cgi->param('template_id') || undef;
45
my $template_id = $cgi->param('template_id') || undef;
46
my $layout_id   = $cgi->param('layout_id') || undef;
46
my $layout_id   = $cgi->param('layout_id') || undef;
47
my $start_label = $cgi->param('start_label') || 1;
47
my $start_label = $cgi->param('start_label') || 1;
48
@label_ids   = $cgi->param('label_id') if $cgi->param('label_id');
48
@label_ids   = $cgi->multi_param('label_id') if $cgi->param('label_id');
49
@item_numbers  = $cgi->param('item_number') if $cgi->param('item_number');
49
@item_numbers  = $cgi->multi_param('item_number') if $cgi->param('item_number');
50
50
51
my $items = undef;
51
my $items = undef;
52
52
(-)a/labels/label-create-xml.pl (-2 / +2 lines)
Lines 37-44 my @item_numbers; Link Here
37
$batch_id    = $cgi->param('batch_id') if $cgi->param('batch_id');
37
$batch_id    = $cgi->param('batch_id') if $cgi->param('batch_id');
38
my $template_id = $cgi->param('template_id') || undef;
38
my $template_id = $cgi->param('template_id') || undef;
39
my $layout_id   = $cgi->param('layout_id') || undef;
39
my $layout_id   = $cgi->param('layout_id') || undef;
40
@label_ids   = $cgi->param('label_id') if $cgi->param('label_id');
40
@label_ids   = $cgi->multi_param('label_id') if $cgi->param('label_id');
41
@item_numbers  = $cgi->param('item_number') if $cgi->param('item_number');
41
@item_numbers  = $cgi->multi_param('item_number') if $cgi->param('item_number');
42
42
43
my $items = undef;
43
my $items = undef;
44
44
(-)a/labels/label-edit-batch.pl (-2 / +2 lines)
Lines 61-68 my @item_numbers; Link Here
61
my $number_list;
61
my $number_list;
62
my $number_type = $cgi->param('number_type') || "barcode";
62
my $number_type = $cgi->param('number_type') || "barcode";
63
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || 0;
63
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || 0;
64
@label_ids = $cgi->param('label_id') if $cgi->param('label_id');
64
@label_ids = $cgi->multi_param('label_id') if $cgi->param('label_id');
65
@item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
65
@item_numbers = $cgi->multi_param('item_number') if $cgi->param('item_number');
66
$number_list = $cgi->param('number_list') if $cgi->param('number_list');
66
$number_list = $cgi->param('number_list') if $cgi->param('number_list');
67
67
68
my $branch_code = C4::Context->userenv->{'branch'};
68
my $branch_code = C4::Context->userenv->{'branch'};
(-)a/labels/label-print.pl (-3 / +3 lines)
Lines 42-55 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
42
42
43
my $op = $cgi->param('op') || 'none';
43
my $op = $cgi->param('op') || 'none';
44
my @label_ids;
44
my @label_ids;
45
@label_ids = $cgi->param('label_id') if $cgi->param('label_id');   # this will handle individual label printing
45
@label_ids = $cgi->multi_param('label_id') if $cgi->param('label_id');   # this will handle individual label printing
46
my @batch_ids;
46
my @batch_ids;
47
@batch_ids = $cgi->param('batch_id') if $cgi->param('batch_id');
47
@batch_ids = $cgi->multi_param('batch_id') if $cgi->param('batch_id');
48
my $layout_id = $cgi->param('layout_id') || undef;
48
my $layout_id = $cgi->param('layout_id') || undef;
49
my $template_id = $cgi->param('template_id') || undef;
49
my $template_id = $cgi->param('template_id') || undef;
50
my $start_label = $cgi->param('start_label') || 1;
50
my $start_label = $cgi->param('start_label') || 1;
51
my @item_numbers;
51
my @item_numbers;
52
@item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
52
@item_numbers = $cgi->multi_param('item_number') if $cgi->param('item_number');
53
my $output_format = $cgi->param('output_format') || 'pdf';
53
my $output_format = $cgi->param('output_format') || 'pdf';
54
my $referer = $cgi->param('referer') || undef;
54
my $referer = $cgi->param('referer') || undef;
55
55
(-)a/opac/opac-search.pl (-1 / +1 lines)
Lines 414-420 if ( C4::Context->preference('OPACdefaultSortField') Link Here
414
}
414
}
415
415
416
my @allowed_sortby = qw /acqdate_asc acqdate_dsc author_az author_za call_number_asc call_number_dsc popularity_asc popularity_dsc pubdate_asc pubdate_dsc relevance title_az title_za/; 
416
my @allowed_sortby = qw /acqdate_asc acqdate_dsc author_az author_za call_number_asc call_number_dsc popularity_asc popularity_dsc pubdate_asc pubdate_dsc relevance title_az title_za/; 
417
@sort_by = $cgi->param('sort_by');
417
@sort_by = $cgi->multi_param('sort_by');
418
$sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by);
418
$sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by);
419
foreach my $sort (@sort_by) {
419
foreach my $sort (@sort_by) {
420
    if ( grep { /^$sort$/ } @allowed_sortby ) {
420
    if ( grep { /^$sort$/ } @allowed_sortby ) {
(-)a/patroncards/edit-batch.pl (-3 / +3 lines)
Lines 55-63 my $display_columns = [ {_summary => {label => 'Summary', link_field => 0} Link Here
55
my $op = $cgi->param('op') || 'new';
55
my $op = $cgi->param('op') || 'new';
56
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || 0;
56
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || 0;
57
my ( @label_ids, @item_numbers, @borrower_numbers );
57
my ( @label_ids, @item_numbers, @borrower_numbers );
58
@label_ids = $cgi->param('label_id') if $cgi->param('label_id');
58
@label_ids = $cgi->multi_param('label_id') if $cgi->param('label_id');
59
@item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
59
@item_numbers = $cgi->multi_param('item_number') if $cgi->param('item_number');
60
@borrower_numbers = $cgi->param('borrower_number') if $cgi->param('borrower_number');
60
@borrower_numbers = $cgi->multi_param('borrower_number') if $cgi->param('borrower_number');
61
my $errstr = $cgi->param('error') || '';
61
my $errstr = $cgi->param('error') || '';
62
my $bor_num_list = $cgi->param('bor_num_list') || undef;
62
my $bor_num_list = $cgi->param('bor_num_list') || undef;
63
my $branch_code = C4::Context->userenv->{'branch'};
63
my $branch_code = C4::Context->userenv->{'branch'};
(-)a/reserve/renewscript.pl (-4 / +4 lines)
Lines 50-67 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
50
50
51
my @data;
51
my @data;
52
if ( $input->param('renew_all') ) {
52
if ( $input->param('renew_all') ) {
53
    @data = $input->param('all_items[]');
53
    @data = $input->multi_param('all_items[]');
54
}
54
}
55
else {
55
else {
56
    @data = $input->param('items[]');
56
    @data = $input->multi_param('items[]');
57
}
57
}
58
58
59
my @barcodes;
59
my @barcodes;
60
if ( $input->param('return_all') ) {
60
if ( $input->param('return_all') ) {
61
    @barcodes = $input->param('all_barcodes[]');
61
    @barcodes = $input->multi_param('all_barcodes[]');
62
}
62
}
63
else {
63
else {
64
    @barcodes = $input->param('barcodes[]');
64
    @barcodes = $input->multi_param('barcodes[]');
65
}
65
}
66
66
67
my $branch = $input->param('branch');
67
my $branch = $input->param('branch');
(-)a/tags/review.pl (-1 / +1 lines)
Lines 97-103 foreach (qw( approve reject test )) { Link Here
97
}
97
}
98
$op ||= 'none';
98
$op ||= 'none';
99
99
100
@tags = $input->param('tags');
100
@tags = $input->multi_param('tags');
101
101
102
$borrowernumber == 0 and push @errors, {op_zero=>1};
102
$borrowernumber == 0 and push @errors, {op_zero=>1};
103
     if ($op eq 'approve') {
103
     if ($op eq 'approve') {
(-)a/tools/export.pl (-2 / +1 lines)
Lines 48-54 my @record_ids; Link Here
48
# biblionumbers is sent from circulation.pl only
48
# biblionumbers is sent from circulation.pl only
49
if ( $query->param("biblionumbers") ) {
49
if ( $query->param("biblionumbers") ) {
50
    $record_type = 'bibs';
50
    $record_type = 'bibs';
51
    @record_ids = $query->param("biblionumbers");
51
    @record_ids = $query->multi_param("biblionumbers");
52
}
52
}
53
53
54
# Default value for output_format is 'iso2709'
54
# Default value for output_format is 'iso2709'
55
- 

Return to bug 16154