[Koha-cvs] koha/C4 Koha.pm

Joshua Ferraro jmf at liblime.com
Sun Mar 18 04:50:16 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Changes by:	Joshua Ferraro <kados>	07/03/18 03:50:16

Modified files:
	C4             : Koha.pm 

Log message:
	Fix for bug 1308: sort by order is lost when browsing results on more than one page

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Koha.pm?cvsroot=koha&r1=1.49&r2=1.50

Patches:
Index: Koha.pm
===================================================================
RCS file: /sources/koha/koha/C4/Koha.pm,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- Koha.pm	10 Mar 2007 06:28:06 -0000	1.49
+++ Koha.pm	18 Mar 2007 03:50:15 -0000	1.50
@@ -17,7 +17,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: Koha.pm,v 1.49 2007/03/10 06:28:06 kados Exp $
+# $Id: Koha.pm,v 1.50 2007/03/18 03:50:15 kados Exp $
 
 use strict;
 require Exporter;
@@ -25,7 +25,7 @@
 use C4::Output;
 use vars qw($VERSION @ISA @EXPORT);
 
-$VERSION = do { my @v = '$Revision: 1.49 $' =~ /\d+/g; shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.50 $' =~ /\d+/g; shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v ); };
 
 =head1 NAME
 
@@ -760,6 +760,8 @@
 
 sub displaySortby {
     my ($sort_by) = @_;
+    $sort_by =~ s/</\&lt;/;
+    $sort_by =~ s/>/\&gt;/;
     my $sort_by_loop = [
         { value => "1=9523 &gt;i", label => "Popularity (Most to Least)" },
         { value => "1=9523 &lt;i", label => "Popularity (Least to Most)" },





More information about the Koha-cvs mailing list