[Koha-cvs] koha/circ circulation.pl [rel_3_0]
Henri-Damien LAURENT
laurenthdl at alinto.com
Tue Feb 27 11:30:28 CET 2007
CVSROOT: /cvsroot/koha
Module name: koha
Branch: rel_3_0
Changes by: Henri-Damien LAURENT <hdl> 07/02/27 10:30:28
Modified files:
circ : circulation.pl
Log message:
BUG FIX NotifyBorrowerDeparture was not correctly used in circulation
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/circ/circulation.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.97.2.21&r2=1.97.2.22
Patches:
Index: circulation.pl
===================================================================
RCS file: /cvsroot/koha/koha/circ/circulation.pl,v
retrieving revision 1.97.2.21
retrieving revision 1.97.2.22
diff -u -b -r1.97.2.21 -r1.97.2.22
--- circulation.pl 31 Jan 2007 15:23:49 -0000 1.97.2.21
+++ circulation.pl 27 Feb 2007 10:30:28 -0000 1.97.2.22
@@ -195,8 +195,10 @@
);
}
# check for NotifyBorrowerDeparture
- if (Date_to_Days(Add_Delta_Days($warning_year,$warning_month,$warning_day,C4::Context->preference('NotifyBorrowerDeparture'))) >
- Date_to_Days( $today_year, $today_month, $today_day ) ) {
+ if (C4::Context->preference('NotifyBorrowerDeparture') &&
+ Date_to_Days(Add_Delta_Days($warning_year,$warning_month,$warning_day,- C4::Context->preference('NotifyBorrowerDeparture'))) <
+ Date_to_Days( $today_year, $today_month, $today_day ) )
+ {
$template->param("warndeparture" => 1);
}
$template->param(
More information about the Koha-cvs
mailing list