Bugzilla – Attachment 171926 Details for
Bug 37964
Only show host items when system preference EasyAnalyticalRecords is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37964: Only show host items when system preference EasyAnalyticalRecords is enabled
Bug-37964-Only-show-host-items-when-system-prefere.patch (text/plain), 1.36 KB, created by
Jonathan Druart
on 2024-09-24 12:44:55 UTC
(
hide
)
Description:
Bug 37964: Only show host items when system preference EasyAnalyticalRecords is enabled
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-09-24 12:44:55 UTC
Size:
1.36 KB
patch
obsolete
>From 8ec885946e9c10e664964a5f107108e3342f37c9 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 19 Sep 2024 16:23:49 +0200 >Subject: [PATCH] Bug 37964: Only show host items when system preference > EasyAnalyticalRecords is enabled > >After Bug 33496, host items are displayed even when system preference EasyAnalyticalRecords is disabled. > >Test plan : >1) Build an analytical record with 773$0 and $9 >2) Enable 'EasyAnalyticalRecords' >3) Go to catalogue details page >=> You see the linked item >4) Disable EasyAnalyticalRecords >5) Go to catalogue details page >=> You dont see the linked item > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Biblio.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 8029be8e430..0f9d4cd877b 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -608,7 +608,8 @@ sub items { > > my $items_rs = $self->_result->items; > >- return Koha::Items->_new_from_dbic( $items_rs ) unless $params->{host_items}; >+ return Koha::Items->_new_from_dbic($items_rs) >+ unless $params->{host_items} && C4::Context->preference('EasyAnalyticalRecords'); > > my @itemnumbers = $items_rs->get_column('itemnumber')->all; > my $host_itemnumbers = $self->_host_itemnumbers(); >-- >2.34.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 37964
:
171776
|
171779
|
171848
|
171849
| 171926 |
171927