Bug 23271: Replace search_limited with search_with_library_limits
[srvgit] / t / db_dependent / Utils / Datatables_Virtualshelves.t
index eaf5ce5..758f93f 100755 (executable)
@@ -38,7 +38,7 @@ my $dbh = C4::Context->dbh;
 $dbh->do(q|DELETE FROM virtualshelves|);
 
 # Pick a categorycode from the DB
-my @categories   = Koha::Patron::Categories->search_limited;
+my @categories   = Koha::Patron::Categories->search_with_library_limits;
 my $categorycode = $categories[0]->categorycode;
 my $branchcode   = "ABC";
 my $branch_data = {