Bugzilla – Attachment 17483 Details for
Bug 6772
Implementation of a recommendations engine
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixing array reference bug in recommendations.pm
0001-bug-6772-fixing-array-reference-bug-in-Recommendatio.patch (text/plain), 796 bytes, created by
Chris Hall
on 2013-04-16 07:03:10 UTC
(
hide
)
Description:
Fixing array reference bug in recommendations.pm
Filename:
MIME Type:
Creator:
Chris Hall
Created:
2013-04-16 07:03:10 UTC
Size:
796 bytes
patch
obsolete
>From 9bf48c32ad1a256ca5004c914f5a7badf9f3f93a Mon Sep 17 00:00:00 2001 >From: Chris Hall <chrish@catalyst.net.nz> >Date: Mon, 15 Apr 2013 12:51:50 +1200 >Subject: [PATCH] bug 6772 fixing array reference bug in Recommendations > >--- > C4/Recommendations.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Recommendations.pm b/C4/Recommendations.pm >index 0cd0e00..0b75e8c 100644 >--- a/C4/Recommendations.pm >+++ b/C4/Recommendations.pm >@@ -183,7 +183,7 @@ LIMIT ? > $sth->execute($biblionumber, $limit); > push @{ $res }, @{$sth->fetchall_arrayref({})}; > >- $res = \@{ @{$res}[0..$limit] } if (@$res > $limit); >+ $res = [ @{$res}[0..$limit] ] if (@$res > $limit); > > my @res = sort { $b->{hit_count} <=> $a->{hit_count} } @$res; > return \@res; >-- >1.7.10.4 >
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 6772
:
5144
|
5250
| 17483