Bug 3883: Fixes blank line in routing list.

The blank line was being caused by the SELECT statement in the getroutinglist fuction of C4::Serials.  The LEFT join in the select statement was creating a single row result of NULL.  Changed the LEFT join to an INNER join.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Garry Collum 2010-05-01 19:37:06 -04:00 committed by Galen Charlton
parent b7a5bbefe8
commit fbd04fab63

View file

@ -2008,7 +2008,7 @@ sub getroutinglist {
my $sth = $dbh->prepare(
"SELECT routingid, borrowernumber, ranking, biblionumber
FROM subscription
LEFT JOIN subscriptionroutinglist ON subscription.subscriptionid = subscriptionroutinglist.subscriptionid
JOIN subscriptionroutinglist ON subscription.subscriptionid = subscriptionroutinglist.subscriptionid
WHERE subscription.subscriptionid = ? ORDER BY ranking ASC
"
);