Bugzilla – Attachment 84822 Details for
Bug 22140
More use of EasyAnalyticalRecords pref
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22140: Use of EasyAnalyticalRecords pref is get_hostitemnumbers_of
Bug-22140-Use-of-EasyAnalyticalRecords-pref-is-get.patch (text/plain), 1.30 KB, created by
Fridolin Somers
on 2019-02-06 14:31:05 UTC
(
hide
)
Description:
Bug 22140: Use of EasyAnalyticalRecords pref is get_hostitemnumbers_of
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2019-02-06 14:31:05 UTC
Size:
1.30 KB
patch
obsolete
>From f15716c9009cbaee680f2414e7008e2d5283b3b2 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 6 Feb 2019 15:03:01 +0100 >Subject: [PATCH] Bug 22140: Use of EasyAnalyticalRecords pref is > get_hostitemnumbers_of > >Like Bug 20702 defined GetHostItemsInfo does nothing if EasyAnalyticalRecords pref is disabled, get_hostitemnumbers_of must be dependant on this pref too. > >Test plan : >1) Build an analytical record with 773$0 and $9 >2) Enable EasyAnalyticalRecords >4) Place an hold on the record >5) => You see the linked item >6) Disable EasyAnalyticalRecords >7) Place an hold on the record >8) => You dont see the linked item >--- > C4/Items.pm | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 0f75cb1b20..2cd9fc959f 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1199,8 +1199,12 @@ references on array of itemnumbers. > > sub get_hostitemnumbers_of { > my ($biblionumber) = @_; >- my $marcrecord = C4::Biblio::GetMarcBiblio({ biblionumber => $biblionumber }); > >+ if( !C4::Context->preference('EasyAnalyticalRecords') ) { >+ return (); >+ } >+ >+ my $marcrecord = C4::Biblio::GetMarcBiblio({ biblionumber => $biblionumber }); > return unless $marcrecord; > > my ( @returnhostitemnumbers, $tag, $biblio_s, $item_s ); >-- >2.17.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 22140
:
84060
|
84820
|
84822
|
84828
|
84958
|
84959
|
84960
|
85143
|
85144
|
85145