Bugzilla – Attachment 92217 Details for
Bug 23329
tracklinks.pl accepts any url from a parameter for proxying if not tracking
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Revert "Bug 23329: (follow-up) Allow item URI with a biblionumber parameter"
Revert-Bug-23329-follow-up-Allow-item-URI-with-a-b.patch (text/plain), 1.37 KB, created by
Martin Renvoize (ashimema)
on 2019-08-15 07:57:53 UTC
(
hide
)
Description:
Revert "Bug 23329: (follow-up) Allow item URI with a biblionumber parameter"
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-08-15 07:57:53 UTC
Size:
1.37 KB
patch
obsolete
>From 0c457348c5ce3afcc7fc249a5a60d9b562aae0db Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 14 Aug 2019 14:23:33 -0400 >Subject: [PATCH] Revert "Bug 23329: (follow-up) Allow item URI with a > biblionumber parameter" > >This reverts commit abdd0f7639d9e9ef81d48835724db9a8e5eb3e6d. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > opac/tracklinks.pl | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > >diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl >index 26b8a12a87..6518faee2c 100755 >--- a/opac/tracklinks.pl >+++ b/opac/tracklinks.pl >@@ -56,14 +56,8 @@ if ($uri && ($biblionumber || $itemnumber) ) { > > my $record = C4::Biblio::GetMarcBiblio({ biblionumber => $biblionumber }); > my $marc_urls = $record ? C4::Biblio::GetMarcUrls($record, C4::Context->preference('marcflavour')) : []; >- my $search_crit = { uri => $uri }; >- if( $itemnumber ) { # itemnumber is leading over biblionumber >- $search_crit->{itemnumber} = $itemnumber; >- } elsif( $biblionumber ) { >- $search_crit->{biblionumber} = $biblionumber; >- } > if ( ( any { $_ eq $uri } map { $_->{MARCURL} } @$marc_urls ) >- || Koha::Items->search( $search_crit )->count ) >+ || Koha::Items->search( { itemnumber => $itemnumber, uri => $uri } )->count ) > { > $tracker->trackclick( > { >-- >2.20.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 23329
:
91566
|
91572
|
91573
|
91759
|
91760
|
92109
|
92110
|
92111
|
92112
|
92187
|
92188
|
92198
|
92199
|
92200
|
92212
|
92213
|
92214
|
92215
|
92216
|
92217
|
92218
|
92219
|
92220
|
92223
|
92224
|
92225
|
92226
|
92227
|
92228
|
92229
|
92230
|
92231
|
92262
|
92263
|
92264
|
92265
|
92266
|
92267
|
92268
|
92269