From b3e640dac1d8f1d730a80833fcd64735a04a4084 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 7 Aug 2020 09:19:50 +0200 Subject: [PATCH] Bug 11469: Fix search by date range --- catalogue/search.pl | 2 +- opac/opac-search.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index b2f7864d32..3c2b4a7cde 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -393,7 +393,7 @@ $template->param(available => $available); my $limit_yr; my $limit_yr_value; if ($params->{'limit-yr'}) { - if ($params->{'limit-yr'} =~ /^\d+$/) { + if ($params->{'limit-yr'} =~ /^\d+/) { $limit_yr = "yr,st-numeric=$params->{'limit-yr'}"; $limit_yr_value = $params->{'limit-yr'}; } diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 2ea1467973..2ef085aeb8 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -514,7 +514,7 @@ $template->param(available => $available); # append year limits if they exist if ($params->{'limit-yr'}) { - if ($params->{'limit-yr'} =~ /^\d+$/) { + if ($params->{'limit-yr'} =~ /^\d+/) { push @limits, "yr,st-numeric=$params->{'limit-yr'}"; } else { -- 2.20.1