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

(-)a/C4/AuthoritiesMarc.pm (-1 / +1 lines)
Lines 240-246 sub SearchAuthorities { Link Here
240
        $query="\@or $orderstring $query" if $orderstring;
240
        $query="\@or $orderstring $query" if $orderstring;
241
    }
241
    }
242
242
243
    $offset=0 unless $offset;
243
    $offset = 0 if not defined $offset or $offset < 0;
244
    my $counter = $offset;
244
    my $counter = $offset;
245
    $length=10 unless $length;
245
    $length=10 unless $length;
246
    my @oAuth;
246
    my @oAuth;
(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-1 / +2 lines)
Lines 327-333 sub simple_search_compat { Link Here
327
    return ('No query entered', undef, undef) unless $query;
327
    return ('No query entered', undef, undef) unless $query;
328
328
329
    my %options;
329
    my %options;
330
    $options{offset} = $offset // 0;
330
    $offset = 0 if not defined $offset or $offset < 0;
331
    $options{offset} = $offset;
331
    $max_results //= 100;
332
    $max_results //= 100;
332
333
333
    unless (ref $query) {
334
    unless (ref $query) {
(-)a/admin/auth_subfields_structure.pl (-1 / +2 lines)
Lines 52-58 my $input = new CGI; Link Here
52
my $tagfield     = $input->param('tagfield');
52
my $tagfield     = $input->param('tagfield');
53
my $tagsubfield  = $input->param('tagsubfield');
53
my $tagsubfield  = $input->param('tagsubfield');
54
my $authtypecode = $input->param('authtypecode');
54
my $authtypecode = $input->param('authtypecode');
55
my $offset       = $input->param('offset') || 0;
55
my $offset       = $input->param('offset');
56
$offset = 0 if not defined $offset or $offset < 0;
56
my $op           = $input->param('op') || '';
57
my $op           = $input->param('op') || '';
57
my $script_name  = "/cgi-bin/koha/admin/auth_subfields_structure.pl";
58
my $script_name  = "/cgi-bin/koha/admin/auth_subfields_structure.pl";
58
59
(-)a/admin/auth_tag_structure.pl (-1 / +2 lines)
Lines 35-41 my $authtypecode = $input->param('authtypecode') || ''; # set Link Here
35
my $existingauthtypecode = $input->param('existingauthtypecode') || '';    # set when we have to create a new framework (in authtype) by copying an old one (in existingauthtype)
35
my $existingauthtypecode = $input->param('existingauthtypecode') || '';    # set when we have to create a new framework (in authtype) by copying an old one (in existingauthtype)
36
36
37
my $searchfield = $input->param('searchfield') || 0;
37
my $searchfield = $input->param('searchfield') || 0;
38
my $offset      = $input->param('offset') || 0;
38
my $offset      = $input->param('offset');
39
$offset = 0 if not defined $offset or $offset < 0;
39
my $op          = $input->param('op')     || '';
40
my $op          = $input->param('op')     || '';
40
$searchfield =~ s/\,//g;
41
$searchfield =~ s/\,//g;
41
42
(-)a/admin/marc_subfields_structure.pl (-2 / +2 lines)
Lines 65-71 my $tagfield = $input->param('tagfield'); Link Here
65
my $tagsubfield   = $input->param('tagsubfield');
65
my $tagsubfield   = $input->param('tagsubfield');
66
my $frameworkcode = $input->param('frameworkcode');
66
my $frameworkcode = $input->param('frameworkcode');
67
my $pkfield       = "tagfield";
67
my $pkfield       = "tagfield";
68
my $offset        = $input->param('offset') || 0;
68
my $offset        = $input->param('offset');
69
$offset = 0 if not defined $offset or $offset < 0;
69
my $script_name   = "/cgi-bin/koha/admin/marc_subfields_structure.pl";
70
my $script_name   = "/cgi-bin/koha/admin/marc_subfields_structure.pl";
70
71
71
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
72
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
72
- 

Return to bug 18854