Merge remote-tracking branch 'origin/new/bug_7458'

This commit is contained in:
Paul Poulain 2012-03-12 18:20:36 +01:00
commit a7f7aeb138

View file

@ -104,7 +104,7 @@ sub plugin {
if ( my $first = $dbh->selectrow_array("SELECT itemcallnumber
FROM items
WHERE itemcallnumber = ?", undef, $padded) ) {
my $icn = $dbh->selectcol_arrayref("SELECT itemcallnumber
my $icn = $dbh->selectcol_arrayref("SELECT DISTINCT itemcallnumber
FROM items
WHERE itemcallnumber LIKE ?
AND itemcallnumber > ?