Bugzilla – Attachment 107939 Details for
Bug 11469
Publication date range assumes that years must always be 4 digits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11469: Fix search by date range
Bug-11469-Fix-search-by-date-range.patch (text/plain), 1.24 KB, created by
Jonathan Druart
on 2020-08-07 07:20:14 UTC
(
hide
)
Description:
Bug 11469: Fix search by date range
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-08-07 07:20:14 UTC
Size:
1.24 KB
patch
obsolete
>From b3e640dac1d8f1d730a80833fcd64735a04a4084 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11469
:
107628
|
107848
| 107939