if($is_hold) {
my $hold = $e->retrieve_action_hold_request($id);
- $U->create_events_for_hook('ahr.format.history.email', $hold, $hold->request_lib, 1);
+ $U->create_events_for_hook('ahr.format.history.email', $hold, $hold->request_lib, undef, undef, 1);
# events will be fired from action_trigger_runner
} else {
my $circ = $e->retrieve_action_circulation($id);
- $U->create_events_for_hook('circ.format.history.email', $circ, $circ->circ_lib, 1);
+ $U->create_events_for_hook('circ.format.history.email', $circ, $circ->circ_lib, undef, undef, 1);
# events will be fired from action_trigger_runner
}
}
sub create_events_for_hook {
- my($self, $hook, $obj, $org_id, $wait) = @_;
+ my($self, $hook, $obj, $org_id, $granularity, $user_data, $wait) = @_;
my $ses = OpenSRF::AppSession->create('open-ils.trigger');
- my $req = $ses->request('open-ils.trigger.event.autocreate', $hook, $obj, $org_id);
+ my $req = $ses->request('open-ils.trigger.event.autocreate',
+ $hook, $obj, $org_id, $granularity, $user_data);
return undef unless $wait;
my $resp = $req->recv;
return $resp->content if $resp;
} elsif ($for_email) {
for my $p (@$payments) {
- $U->create_events_for_hook('money.format.payment_receipt.email', $p, $p->xact->usr->home_ou, 1);
+ $U->create_events_for_hook('money.format.payment_receipt.email', $p, $p->xact->usr->home_ou, undef, undef, 1);
}
}