From 5a66a4866ecfcbfe8f199a75a6a83fd6623bb649 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 20 Mar 2013 13:53:12 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.0