LP#1341703 Thinko in Batch Edit (hidden by older OpenSRFs)
authorMike Rylander <mrylander@gmail.com>
Mon, 14 Jul 2014 18:57:38 +0000 (14:57 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 18 Jul 2014 20:05:29 +0000 (16:05 -0400)
There's a bug on line 272 of O::A::Cat.pm where we called a non-existent
method named respond_complete on the invocant object. Instead, we need to
call that on the client object (spelled $conn in this method). Batch bib
edit won't work on new OpenSRF's until this is fixed.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm

index fbf140a..98d580f 100644 (file)
@@ -269,7 +269,7 @@ sub template_overlay_container {
     my $responses = [];
     my $some_failed = 0;
 
-    $self->respond_complete(
+    $conn->respond_complete(
         $actor->request('open-ils.actor.anon_cache.set_value', $auth, res_list => $responses)->gather(1)
     ) if ($actor);