From: Dan Scott Date: Thu, 8 Sep 2016 04:38:53 +0000 (-0400) Subject: Avoid warnings at circ time when no hard due date is configured X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fb00412e4ce8b26436495005c8d8ba9021fa58c7;p=contrib%2FConifer.git Avoid warnings at circ time when no hard due date is configured We have no hard due dates, so we generate a warning every time. Signed-off-by: Dan Scott --- 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 4f7119eacd..c65edd7e5b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -1048,7 +1048,9 @@ sub run_indb_circ_test { $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})); - $self->circ_matrix_matchpoint->hard_due_date($self->editor->retrieve_config_hard_due_date($results->[0]->{hard_due_date})); + if(defined($results->[0]->{hard_due_date})) { + $self->circ_matrix_matchpoint->hard_due_date($self->editor->retrieve_config_hard_due_date($results->[0]->{hard_due_date})); + } # Grab the *last* response for limit_groups, where it is more likely to be filled $self->limit_groups($results->[-1]->{limit_groups}); }