being yet more careful about the requestor field
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Aug 2006 20:48:34 +0000 (20:48 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Aug 2006 20:48:34 +0000 (20:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5741 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm

index 81d7028..014d79f 100644 (file)
@@ -78,7 +78,7 @@ sub build_runner {
        $runner->insert( "$evt.volume",         $ctx->{volume}, 1);
        $runner->insert( "$evt.title",          $ctx->{title}, 1);
 
-       if( $ctx->{requestor} ) {
+       if( ref $ctx->{requestor} ) {
                $runner->insert( "$evt.requestor",      $ctx->{requestor}, 1);
                $runner->insert( "$evt.location",       
                        $editor->retrieve_actor_org_unit($ctx->{requestor}->ws_ou), 1);