[Koha-cvs] koha/C4/Circulation Circ2.pm [rel_2_2]

Ryan Higgins rch at liblime.com
Mon Jun 25 16:43:13 CEST 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Ryan Higgins <rych>	07/06/25 14:43:13

Modified files:
	C4/Circulation : Circ2.pm 

Log message:
	fix inventory results display on lcsort

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Circulation/Circ2.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.87.2.26&r2=1.87.2.27

Patches:
Index: Circ2.pm
===================================================================
RCS file: /sources/koha/koha/C4/Circulation/Attic/Circ2.pm,v
retrieving revision 1.87.2.26
retrieving revision 1.87.2.27
diff -u -b -r1.87.2.26 -r1.87.2.27
--- Circ2.pm	24 Jun 2007 17:31:29 -0000	1.87.2.26
+++ Circ2.pm	25 Jun 2007 14:43:13 -0000	1.87.2.27
@@ -3,7 +3,7 @@
 
 package C4::Circulation::Circ2;
 
-# $Id: Circ2.pm,v 1.87.2.26 2007/06/24 17:31:29 rych Exp $
+# $Id: Circ2.pm,v 1.87.2.27 2007/06/25 14:43:13 rych Exp $
 
 #package to deal with Returns
 #written 3/11/99 by olwen at katipo.co.nz
@@ -112,7 +112,8 @@
 	}
 	if ($lcsort) { 
 		my @sres = sort _lcsort @results;
-		@results = @sres[$offset..$offset+$size];
+		$size = $numresults - $offset if($offset+$size > $numresults);
+		@results = @sres[$offset.. $offset + $size - 1];
 	}
 	return \@results,$numresults;
 }





More information about the Koha-cvs mailing list