[Koha-cvs] koha/circ circulation.pl

Pierrick LE GALL pierrick at koha-fr.org
Fri Mar 31 17:31:44 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch: 	
Changes by:	Pierrick LE GALL <plg at savannah.gnu.org>	06/03/31 15:31:44

Modified files:
	circ           : circulation.pl 

Log message:
	bug fixed: the issue timestamp had not the same format as the today's date
	to which it was compared. The comparison separate issues on display between
	today issues and older issues.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/circ/circulation.pl.diff?tr1=1.90&tr2=1.91&r1=text&r2=text

Patches:
Index: koha/circ/circulation.pl
diff -u koha/circ/circulation.pl:1.90 koha/circ/circulation.pl:1.91
--- koha/circ/circulation.pl:1.90	Fri Jan  6 16:39:37 2006
+++ koha/circ/circulation.pl	Fri Mar 31 15:31:44 2006
@@ -204,6 +204,7 @@
 	# split in 2 arrays for today & previous
 	foreach my $it (keys %$issueslist) {
 		my $issuedate = $issueslist->{$it}->{'timestamp'};
+		$issuedate =~ s/-//g;
 		$issuedate = substr($issuedate, 0, 8);
 		if ($todaysdate == $issuedate) {
 			push @todaysissues, $issueslist->{$it};





More information about the Koha-cvs mailing list