Bugzilla – Attachment 150200 Details for
Bug 33490
Agreements - Filter by expired results in error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33490: Fix ambiguous query error
Bug-33490-Fix-ambiguous-query-error.patch (text/plain), 911 bytes, created by
Jonathan Druart
on 2023-04-25 12:47:35 UTC
(
hide
)
Description:
Bug 33490: Fix ambiguous query error
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-25 12:47:35 UTC
Size:
911 bytes
patch
obsolete
>From 1453ca8f7c4778748a9d38c55412e3091c097d94 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 21 Apr 2023 11:48:55 +0000 >Subject: [PATCH] Bug 33490: Fix ambiguous query error > >Doing actual testing with some agreements with expired periods, this was returning a 500 error > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/ERM/Agreements.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/ERM/Agreements.pm b/Koha/ERM/Agreements.pm >index 6001c4727cf..e8b23c82e5f 100644 >--- a/Koha/ERM/Agreements.pm >+++ b/Koha/ERM/Agreements.pm >@@ -70,7 +70,7 @@ sub filter_by_expired { > push @expired_agreement_ids, $p->agreement_id; > } > >- return $self->search( { agreement_id => \@expired_agreement_ids } ); >+ return $self->search( { "me.agreement_id" => \@expired_agreement_ids } ); > } > > =head3 type >-- >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 33490
:
149519
|
149521
|
149522
|
149523
|
149603
|
149604
|
149615
|
149643
|
149652
|
149661
|
149672
|
149673
|
149674
|
149675
|
149676
|
150038
|
150039
|
150040
|
150048
|
150194
|
150195
|
150196
|
150197
|
150198
|
150199
| 150200 |
150201