SIP2: Return slightly more hold info user/tsbere/sip2_hold_queue
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 24 May 2012 16:37:33 +0000 (12:37 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Thu, 24 May 2012 16:38:54 +0000 (12:38 -0400)
We don't have a normal hold queue, but if there is a hold we can call that
the hold queue. So return the ID of the hold that was captured.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm

index 71a823d..96a434a 100644 (file)
@@ -388,6 +388,7 @@ sub owner {
 
 sub hold_queue {
     my $self = shift;
+    return [$self->{hold}->id] if $self->{hold};
     return [];
 }