From b2b132b9afc65aef05196214c0ab45be0c55c364 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Thu, 11 Feb 2021 16:27:54 +0100 Subject: [PATCH] Bug 27683: Impact on catalogue/detail.pl Since EasyAnalyticalRecords pref is now in GetAnalyticsCount, remove test in catalogue/detail.pl. Test plan : 1) Build an item and a linked analytical record with 773$0 and $9 2) Go to record detail page 3) Enable EasyAnalyticalRecords 4) You see analytics tab and analytical count on item 5) Disable EasyAnalyticalRecords 6) You dont see analytics tab Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit cc23a4c478ab57f3b987b27fb7c2beebd4ceb823) Signed-off-by: Lucas Gass (cherry picked from commit e9daeb70a20f2790e90705b5fe11bdec8458566f) Signed-off-by: Arthur Suzuki --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 647c431382..0ee6da03fa 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -371,7 +371,7 @@ foreach my $item (@items) { if ( $analyze ) { # count if item is used in analytical bibliorecords # The 'countanalytics' flag is only used in the templates if analyze is set - my $countanalytics = C4::Context->preference('EasyAnalyticalRecords') ? GetAnalyticsCount($item->{itemnumber}) : 0; + my $countanalytics = GetAnalyticsCount( $item->{itemnumber} ); if ($countanalytics > 0){ $analytics_flag=1; $item->{countanalytics} = $countanalytics; -- 2.39.5