From 34dc5f91652c03a294360883413891f042e39f9b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 15 Dec 2014 15:08:06 -0500 Subject: [PATCH] Holds placement avoid calling non-existent func. Avoid calling an undefined function during hold placement. In older versions of opensrf, this kind of the thing would silently fail. (Well, it would log to the stderr file). Modern opensrf allows Perl the throw a standard exception, which stops execution. Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm index b853b427d8..7d405abb62 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm @@ -396,7 +396,7 @@ sub create_hold { 'open-ils.hold-targeter.target', {hold => $hold->id} ) unless $U->is_true($hold->frozen); - $U->log_user_activity($recipient->id, $self->get_act_who, 'hold'); + $U->log_user_activity($recipient->id, '', 'hold'); return undef; } -- 2.11.0