Bugzilla – Attachment 94935 Details for
Bug 23836
tracklinks.pl should not forward if TrackClicks is disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23836: Don't forward form tracklinks if not tracking
Bug-23836-Dont-forward-form-tracklinks-if-not-trac.patch (text/plain), 1.12 KB, created by
Marcel de Rooy
on 2019-11-01 07:02:32 UTC
(
hide
)
Description:
Bug 23836: Don't forward form tracklinks if not tracking
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-11-01 07:02:32 UTC
Size:
1.12 KB
patch
obsolete
>From e62f5fb99dade6f7085ff244a9634a9006f2a661 Mon Sep 17 00:00:00 2001 >From: Nick <nick@bywatersolutions.com> >Date: Thu, 17 Oct 2019 15:26:18 +0000 >Subject: [PATCH] Bug 23836: Don't forward form tracklinks if not tracking >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > opac/tracklinks.pl | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl >index 809037ad4e..80794cb50d 100755 >--- a/opac/tracklinks.pl >+++ b/opac/tracklinks.pl >@@ -33,9 +33,10 @@ my $uri = $cgi->param('uri') || ''; > my $biblionumber = $cgi->param('biblionumber') || 0; > my $itemnumber = $cgi->param('itemnumber') || 0; > >+my $tracking_method = C4::Context->preference('TrackClicks'); >+output_error( $cgi, '404' ) unless $tracking_method; > my $tracker = Koha::Linktracker->new( >- { trackingmethod => C4::Context->preference('TrackClicks') } ); >- >+ { trackingmethod => $tracking_method } ); > if ($uri && ($biblionumber || $itemnumber) ) { > my $borrowernumber = 0; > >-- >2.11.0
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 23836
:
94376
|
94872
|
94873
| 94935 |
94936