Bugzilla – Attachment 49760 Details for
Bug 16184
Report bor_issues_top shows incorrect number of rows
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16184 - Report bor_issues_top shows incorrect number of rows
Bug-16184---Report-borissuestop-shows-incorrect-nu.patch (text/plain), 1.23 KB, created by
Mason James
on 2016-04-01 03:01:51 UTC
(
hide
)
Description:
Bug 16184 - Report bor_issues_top shows incorrect number of rows
Filename:
MIME Type:
Creator:
Mason James
Created:
2016-04-01 03:01:51 UTC
Size:
1.23 KB
patch
obsolete
>From d4145ef845e9a7d87ac8ef1efc4bc3178555fd7d Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >Date: Fri, 1 Apr 2016 15:56:34 +1300 >Subject: [PATCH] Bug 16184 - Report bor_issues_top shows incorrect number of > rows >Content-Type: text/plain; charset="utf-8" > >--- > reports/bor_issues_top.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/reports/bor_issues_top.pl b/reports/bor_issues_top.pl >index 30b95b7..c135355 100755 >--- a/reports/bor_issues_top.pl >+++ b/reports/bor_issues_top.pl >@@ -160,6 +160,7 @@ sub calculate { > my $grantotal =0; > my $dbh = C4::Context->dbh; > >+ > # Checking filters > my @loopfilter; > my @cellmap = ( >@@ -362,6 +363,7 @@ sub calculate { > } keys %patrons; > foreach my $id (@ranked_ids) { > my @loopcell; >+ > foreach my $key (@cols_in_order) { > if($column){ > push @loopcell, { >@@ -381,8 +383,10 @@ sub calculate { > 'loopcell' => \@loopcell, > 'hilighted' => ($i%2), > }; >+ # use a limit, if a limit is defined >+ last if $i > $limit and $limit > } >- >+ > # the header of the table > $globalline{loopfilter}=\@loopfilter; > # the core of the table >-- >2.1.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 16184
:
49760
|
49761
|
49764
|
49821