being yet more careful about the requestor field
[Evergreen.git] / 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);