Bugzilla – Attachment 132016 Details for
Bug 17748
Show due date in item search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17748: (follow-up) Fix date due column filter
Bug-17748-follow-up-Fix-date-due-column-filter.patch (text/plain), 1.51 KB, created by
Jonathan Druart
on 2022-03-22 12:35:29 UTC
(
hide
)
Description:
Bug 17748: (follow-up) Fix date due column filter
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-03-22 12:35:29 UTC
Size:
1.51 KB
patch
obsolete
>From 43a03c1ec22f6a26f7652e3d279614f41335706d Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 23 Feb 2022 16:30:03 -1000 >Subject: [PATCH] Bug 17748: (follow-up) Fix date due column filter > >After items search result when entering a term in date due colum filter >table is not filtered. >Its is because columns from 'Issue' must be added in _SearchItems_build_where_fragment() >like it has been added in SearchItems(). > >Test plan : >1) Perform an item search with some results beeing checked-out >2) In colum 'Date due' enter a number that is contained is some due > dates, ie '2022' >3) Table results are filtered with items having search term in due date > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Items.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Items.pm b/C4/Items.pm >index a61fe9d0d20..6fe676814ae 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1294,6 +1294,7 @@ sub _SearchItems_build_where_fragment { > my @columns = Koha::Database->new()->schema()->resultset('Item')->result_source->columns; > push @columns, Koha::Database->new()->schema()->resultset('Biblio')->result_source->columns; > push @columns, Koha::Database->new()->schema()->resultset('Biblioitem')->result_source->columns; >+ push @columns, Koha::Database->new()->schema()->resultset('Issue')->result_source->columns; > my @operators = qw(= != > < >= <= is like); > push @operators, 'not like'; > my $field = $filter->{field} // q{}; >-- >2.25.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 17748
:
116353
|
119341
|
128332
|
128333
|
128582
|
128583
|
128584
|
128591
|
128638
|
128645
|
128646
|
128647
|
129623
|
129624
|
129625
|
130154
|
130845
|
130846
|
130847
|
130848
|
130849
|
131051
| 132016 |
132201