my $session = $apputils->start_db_session();
- $apputils->set_audit_info($user_session, $user_obj->id, $user_obj->wsid);
+ $apputils->set_audit_info($session, $user_session, $user_obj->id, $user_obj->wsid);
my $newid = _create_stat_cat($session, $stat_cat, $method);
if( ref($stat_cat->entries) ) {
return $evt if $evt;
my $session = $apputils->start_db_session();
- $apputils->set_audit_info($user_session, $user_obj->id, $user_obj->wsid);
+ $apputils->set_audit_info($session, $user_session, $user_obj->id, $user_obj->wsid);
my $req = $session->request($method, $entry);
my $status = $req->gather(1);
$apputils->commit_db_session($session);
return $evt if $evt;
my $session = $apputils->start_db_session();
- $apputils->set_audit_info($user_session, $user_obj->id, $user_obj->wsid);
+ $apputils->set_audit_info($session, $user_session, $user_obj->id, $user_obj->wsid);
my $req = $session->request($method, $cat);
my $status = $req->gather(1);
$apputils->commit_db_session($session);
$entry->clear_id();
my $session = $apputils->start_db_session();
- $apputils->set_audit_info($user_session, $user_obj->id, $user_obj->wsid);
+ $apputils->set_audit_info($session, $user_session, $user_obj->id, $user_obj->wsid);
my $req = $session->request($method, $entry);
my $status = $req->gather(1);
$apputils->commit_db_session($session);
$map->clear_id();
my $session = $apputils->start_db_session();
- $apputils->set_audit_info($user_session, $user_obj->id, $user_obj->wsid);
+ $apputils->set_audit_info($session, $user_session, $user_obj->id, $user_obj->wsid);
my $req = $session->request($method, $map);
my $newid = $req->gather(1);
warn "Created new stat cat map with id $newid\n";
my $session = $apputils->start_db_session();
- $apputils->set_audit_info($user_session, $user_obj->id, $user_obj->wsid);
+ $apputils->set_audit_info($session, $user_session, $user_obj->id, $user_obj->wsid);
my $req = $session->request($method, $map);
my $newid = $req->gather(1);
warn "Updated new stat cat map with id $newid\n";
($copy, $evt) = $U->fetch_copy_by_barcode($params{barcode}) unless $copy;
return $evt if $evt;
my $session = $U->start_db_session();
- $U->set_audit_info($authtoken, $requestor->id, $requestor->wsid);
+ $U->set_audit_info($session, $authtoken, $requestor->id, $requestor->wsid);
$evt = transit_receive( $self, $copy, $requestor, $session );
$U->commit_db_session($session) if $U->event_equals($evt,'SUCCESS');
return $evt;
my $source = $requestor->home_ou;
my $dest = $params{destination} || $copy->circ_lib;
my $transit = Fieldmapper::action::transit_copy->new;
- $U->set_audit_info($authtoken, $requestor->id, $requestor->wsid);
+ $U->set_audit_info($session, $authtoken, $requestor->id, $requestor->wsid);
$logger->activity("User ". $requestor->id ." creating a ".
" new copy transit for copy ".$copy->id." to org $dest");