Bug 13099 - "Item hasn't been transferred yet" shows pickup branch rather than holdin...
[koha-ffzg.git] / svc / holds
index 3ff704f..43bcf2a 100755 (executable)
--- a/svc/holds
+++ b/svc/holds
@@ -128,7 +128,7 @@ while ( my $h = $holds_rs->next() ) {
             $h->branchcode()->branchcode() )
         {
             $hold->{not_transferred}    = 1;
-            $hold->{not_transferred_by} = $h->branchcode()->branchname();
+            $hold->{not_transferred_by} = $h->item()->holdingbranch()->branchname();
         }
     }