Lines 463-470
if ($borrower) {
Link Here
|
463 |
#push @borrowernumbers, $borrower->{'borrowernumber'}; |
463 |
#push @borrowernumbers, $borrower->{'borrowernumber'}; |
464 |
|
464 |
|
465 |
# get each issue of the borrower & separate them in todayissues & previous issues |
465 |
# get each issue of the borrower & separate them in todayissues & previous issues |
466 |
my ($issueslist) = GetPendingIssues($borrower->{'borrowernumber'}); |
466 |
my $issueslist = GetPendingIssues($borrower->{'borrowernumber'}); |
467 |
my ($relissueslist) = GetPendingIssues(@relborrowernumbers); |
467 |
my $relissueslist = []; |
|
|
468 |
if ( @relborrowernumbers ) { |
469 |
$relissueslist = GetPendingIssues(@relborrowernumbers); |
470 |
} |
468 |
|
471 |
|
469 |
build_issue_data($issueslist, 0); |
472 |
build_issue_data($issueslist, 0); |
470 |
build_issue_data($relissueslist, 1); |
473 |
build_issue_data($relissueslist, 1); |
Lines 477-482
if ($borrower) {
Link Here
|
477 |
else { |
480 |
else { |
478 |
@todaysissues = sort { $b->{'timestamp'} cmp $a->{'timestamp'} } @todaysissues; |
481 |
@todaysissues = sort { $b->{'timestamp'} cmp $a->{'timestamp'} } @todaysissues; |
479 |
} |
482 |
} |
|
|
483 |
|
480 |
if ( C4::Context->preference( "previousIssuesDefaultSortOrder" ) eq 'asc' ){ |
484 |
if ( C4::Context->preference( "previousIssuesDefaultSortOrder" ) eq 'asc' ){ |
481 |
@previousissues = sort { $a->{'date_due'} cmp $b->{'date_due'} } @previousissues; |
485 |
@previousissues = sort { $a->{'date_due'} cmp $b->{'date_due'} } @previousissues; |
482 |
} |
486 |
} |