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> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commitf27d58f72f) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitbd9c430867) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
97da5f04bf
commit
8a7a9da68d
|
|
@ -557,7 +557,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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue