Bugzilla – Attachment 83037 Details for
Bug 21907
Error from mainpage when Article requests enabled and either IndependentBranches or IndependentBranchesPatronModifications is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21907: Fix article requests count for non-superlibrarians
Bug-21907-Fix-article-requests-count-for-non-super.patch (text/plain), 1.03 KB, created by
Jonathan Druart
on 2018-12-11 13:14:58 UTC
(
hide
)
Description:
Bug 21907: Fix article requests count for non-superlibrarians
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-11 13:14:58 UTC
Size:
1.03 KB
patch
obsolete
>From 5fddaae255b2c652732aa997a2231ae2b7508b69 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 Dec 2018 10:13:42 -0300 >Subject: [PATCH] Bug 21907: Fix article requests count for non-superlibrarians > >The query generates "Column 'branchcode' in where clause is ambiguous" > >Test plan: >1 - Enable 'IndependentBranchesPatronModifications' and article requests >2 - Sign in as non-superlibrarian >3 - View plack log >4 - Refresh mainpage, see error in logs >--- > mainpage.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/mainpage.pl b/mainpage.pl >index da6aaee924..49f46fc272 100755 >--- a/mainpage.pl >+++ b/mainpage.pl >@@ -71,7 +71,7 @@ my $pending_discharge_requests = Koha::Patron::Discharge::count({ pending => 1 } > my $pending_article_requests = Koha::ArticleRequests->search_limited( > { > status => Koha::ArticleRequest::Status::Pending, >- $branch ? ( branchcode => $branch ) : (), >+ $branch ? ( 'me.branchcode' => $branch ) : (), > } > )->count; > >-- >2.11.0
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 21907
:
83037
|
83794
|
84681