BugFix : authorities resultlist display was missing one item on end of list.
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Wed, 19 Dec 2007 18:29:05 +0000 (12:29 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 20 Dec 2007 00:55:03 +0000 (18:55 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/AuthoritiesMarc.pm

index 43c663f..3da0b70 100644 (file)
@@ -162,7 +162,7 @@ sub SearchAuthorities {
                 }
             }
             # limit the $results_per_page to result size if it's more
-            $length = $numbers-1-$offset if $numbers < ($offset+$length);
+            $length = $numbers-$offset if $numbers < ($offset+$length);
             # for the requested page, replace authid by the complete record
             # speed improvement : avoid reading too much things
             my @finalresult;