[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 3749ed5425b04ec2253197fc5b58870e61c261fc
Evergreen Git
git at git.evergreen-ils.org
Wed Jul 6 09:09:12 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_1 has been updated
via 3749ed5425b04ec2253197fc5b58870e61c261fc (commit)
from 973aaee8be09a47613b5fb0f65deb44df7379ac4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3749ed5425b04ec2253197fc5b58870e61c261fc
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Tue Jul 5 17:13:05 2011 -0400
Can't use 0 in true/false, use defined instead
This allows for setting renewals/grace period to 0 by force
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
index 559dc22..566a168 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
@@ -1162,11 +1162,11 @@ sub run_indb_circ_test {
$logger->info("circulator: circ policy test found matchpoint built via rows " . $results->[0]->{buildrows});
$self->circ_matrix_matchpoint($self->editor->retrieve_config_circ_matrix_matchpoint($mp));
$self->circ_matrix_matchpoint->duration_rule($self->editor->retrieve_config_rules_circ_duration($results->[0]->{duration_rule}));
- if($results->[0]->{renewals}) {
+ if(defined($results->[0]->{renewals})) {
$self->circ_matrix_matchpoint->duration_rule->max_renewals($results->[0]->{renewals});
}
$self->circ_matrix_matchpoint->recurring_fine_rule($self->editor->retrieve_config_rules_recurring_fine($results->[0]->{recurring_fine_rule}));
- if($results->[0]->{grace_period}) {
+ if(defined($results->[0]->{grace_period})) {
$self->circ_matrix_matchpoint->recurring_fine_rule->grace_period($results->[0]->{grace_period});
}
$self->circ_matrix_matchpoint->max_fine_rule($self->editor->retrieve_config_rules_max_fine($results->[0]->{max_fine_rule}));
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/Application/Circ/Circulate.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list