The open-ils.actor.event.test_notification API call should only support
the au.email.test and au.sms_text.test hooks.
Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
}
my $event_hook = $$args{hook} or return $e->event;
- my $usr = $e->retrieve_actor_user($$args{target});
+ return $e->event unless ($event_hook eq 'au.email.test' or $event_hook eq 'au.sms_text.test');
+ my $usr = $e->retrieve_actor_user($$args{target});
return $e->event unless $usr;
return $U->fire_object_event(undef, $event_hook, $usr, $e->requestor->ws_ou);