@@ -, +, @@ --- C4/Search.pm | 4 ++-- .../atomicupdate/bug_30327_add_sortComponents_syspref.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -1217,7 +1217,7 @@ sub buildQuery { my $query_cgi; my $query_type; - my $limit; + my $limit = q{}; my $limit_cgi; my $limit_desc; @@ -1328,7 +1328,7 @@ sub buildQuery { # This is needed otherwise ccl= and &limit won't work together, and # this happens when selecting a subject on the opac-detail page my $original_q = $q; # without available part - $q .= $limit; + $q .= $limit if $limit; return ( undef, $q, $q, "q=ccl=".uri_escape_utf8($q), $original_q, '', '', '', 'ccl' ); } if ( $query =~ /^cql=/ ) { --- a/installer/data/mysql/atomicupdate/bug_30327_add_sortComponents_syspref.pl +++ a/installer/data/mysql/atomicupdate/bug_30327_add_sortComponents_syspref.pl @@ -8,8 +8,8 @@ return { my ($dbh, $out) = @$args{qw(dbh out)}; $dbh->do(q{ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('ComponentsSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'), - ('ComponentsSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice') + ('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'), + ('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice') }); say $out "Added ComponentsSortField and ComponentsSortOrder sysprefs"; }, --