Ccreate the script runner env before renewal test
authorDan Scott <dscott@laurentian.ca>
Wed, 20 Mar 2013 17:53:12 +0000 (13:53 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 20 Mar 2013 17:55:07 +0000 (13:55 -0400)
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 <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 273978e..73970f7 100644 (file)
@@ -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);