Bug 15548 [QA Followup] - Catch a couple new Koha::Borrower uses
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 15 Jan 2016 18:38:03 +0000 (18:38 +0000)
committerJesse Weaver <jweaver@bywatersolutions.com>
Thu, 3 Mar 2016 21:39:00 +0000 (14:39 -0700)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
admin/branches.pl

index a655fc6..e5b2f52 100755 (executable)
@@ -24,7 +24,7 @@ use C4::Auth;
 use C4::Context;
 use C4::Output;
 use C4::Koha;
-use Koha::Borrowers;
+use Koha::Patrons;
 use Koha::Items;
 use Koha::Libraries;
 use Koha::LibraryCategories;
@@ -122,7 +122,7 @@ if ( $op eq 'add_form' ) {
             },
         }
     )->count;
-    my $patrons_count = Koha::Borrowers->search( { branchcode => $branchcode, } )->count;
+    my $patrons_count = Koha::Patrons->search( { branchcode => $branchcode, } )->count;
 
     if ( $items_count or $patrons_count ) {
         push @messages,