From 8c9342322f40e6693125251a997060e9c1f48077 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 31 Aug 2021 08:23:01 +0200 Subject: [PATCH] Bug 22690: Fix the tracklink feature With the FK we must set to undef/NULL, not 0. Signed-off-by: Jonathan Druart --- opac/tracklinks.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl index 5849d3a0c9..5385beac6d 100755 --- a/opac/tracklinks.pl +++ b/opac/tracklinks.pl @@ -30,8 +30,8 @@ use List::MoreUtils qw( any ); my $cgi = CGI->new; my $uri = $cgi->param('uri') || ''; -my $biblionumber = $cgi->param('biblionumber') || 0; -my $itemnumber = $cgi->param('itemnumber') || 0; +my $biblionumber = $cgi->param('biblionumber');; +my $itemnumber = $cgi->param('itemnumber'); my $tracking_method = C4::Context->preference('TrackClicks'); unless ( $tracking_method ) { @@ -41,7 +41,7 @@ unless ( $tracking_method ) { my $tracker = Koha::Linktracker->new( { trackingmethod => $tracking_method } ); if ($uri && ($biblionumber || $itemnumber) ) { - my $borrowernumber = 0; + my $borrowernumber; # we have a uri and we want to track if ( $tracker->trackingmethod() eq 'track' ) { -- 2.39.5