[open-ils-commits] [GIT] Evergreen ILS branch master updated. afdf624007f38ff4d9f7d575a6270dc557d3e117
Evergreen Git
git at git.evergreen-ils.org
Wed Jul 6 09:08:35 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, master has been updated
via afdf624007f38ff4d9f7d575a6270dc557d3e117 (commit)
from 47ab015a78b94d7e9e530747729825302fbaa016 (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 afdf624007f38ff4d9f7d575a6270dc557d3e117
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 2d42704..cbdb4fc 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
@@ -1174,11 +1174,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