Bugzilla – Attachment 71925 Details for
Bug 16330
Add routes to add, update and delete patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16330: (QA follow-up) Update usage of search plugin because of bug 19686
Bug-16330-QA-follow-up-Update-usage-of-search-plug.patch (text/plain), 1.02 KB, created by
Josef Moravec
on 2018-02-19 08:43:32 UTC
(
hide
)
Description:
Bug 16330: (QA follow-up) Update usage of search plugin because of bug 19686
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-02-19 08:43:32 UTC
Size:
1.02 KB
patch
obsolete
>From 9f38c32b7eefda53860b9db2fcf330f28ef4c841 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Mon, 19 Feb 2018 07:15:22 +0000 >Subject: [PATCH] Bug 16330: (QA follow-up) Update usage of search plugin > because of bug 19686 > >Test plan: >prove t/db_dependent/api/v1/patrons.t >--> without patch the list subtest fail >--> with patch test pass >--- > Koha/REST/V1/Patrons.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm >index 81e2642..42a2b15 100644 >--- a/Koha/REST/V1/Patrons.pm >+++ b/Koha/REST/V1/Patrons.pm >@@ -44,8 +44,8 @@ sub list { > > return try { > my $patrons_set = Koha::Patrons->new; >- my @patrons = $c->objects->search( $patrons_set )->as_list; >- return $c->render( status => 200, openapi => \@patrons ); >+ my $patrons = $c->objects->search( $patrons_set ); >+ return $c->render( status => 200, openapi => $patrons ); > } > catch { > if ( $_->isa('DBIx::Class::Exception') ) { >-- >2.1.4
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 16330
:
50803
|
50889
|
51066
|
51131
|
51132
|
53216
|
53217
|
53820
|
54942
|
55147
|
56666
|
56667
|
56668
|
63646
|
63647
|
63649
|
63650
|
69546
|
69547
|
69548
|
69549
|
69550
|
69551
|
69752
|
69762
|
69763
|
69764
|
69765
|
69766
|
69767
|
69768
|
69787
|
70034
|
70035
|
70036
|
70037
|
70038
|
71667
|
71668
|
71669
|
71670
|
71671
|
71920
|
71921
|
71922
|
71923
|
71924
|
71925
|
71933
|
71934
|
71935
|
71936
|
71937
|
71938
|
73434