[Koha-cvs] koha/C4 Koha.pm [dev_week]

Joshua Ferraro jmf at liblime.com
Sun Mar 18 04:45:54 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Joshua Ferraro <kados>	07/03/18 03:45:54

Modified files:
	C4             : Koha.pm 

Log message:
	preserve sort_by on page reload

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Koha.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.22.2.4.2.9&r2=1.22.2.4.2.10

Patches:
Index: Koha.pm
===================================================================
RCS file: /sources/koha/koha/C4/Koha.pm,v
retrieving revision 1.22.2.4.2.9
retrieving revision 1.22.2.4.2.10
diff -u -b -r1.22.2.4.2.9 -r1.22.2.4.2.10
--- Koha.pm	1 Jan 2007 02:14:33 -0000	1.22.2.4.2.9
+++ Koha.pm	18 Mar 2007 03:45:54 -0000	1.22.2.4.2.10
@@ -795,6 +795,9 @@
 
 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