From: Dan Scott Date: Wed, 20 Mar 2013 17:53:12 +0000 (-0400) Subject: Ccreate the script runner env before renewal test X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5a66a4866ecfcbfe8f199a75a6a83fd6623bb649;p=contrib%2FConifer.git Ccreate the script runner env before renewal test The circ_permit_renew.js script was failing with errors suggesting that the environment was not properly initialized; for example, "log_vars not defined". Calling mk_script_runner before running the renew test resolves the problem. 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 273978eb96..73970f7558 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -3715,6 +3715,7 @@ sub run_renew_permit { unless $self->circ_test_success; } else { + $self->mk_script_runner; my $runner = $self->script_runner; $runner->load($self->circ_permit_renew);