From e53335d81533fe1d012d572f66242d7aa3580b7e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Nov 2021 11:39:30 +0100 Subject: [PATCH] Bug 28959: Fix occurrence in tools/batch_record_modification.pl No method count found for Koha::Virtualshelves DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Unknown column 'category' in 'where clause' at /kohadevbox/koha/Koha/Objects.pm line 601 at /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt line 80. --- tools/batch_record_modification.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/batch_record_modification.pl b/tools/batch_record_modification.pl index f2865ca8795..1aa7df32b41 100755 --- a/tools/batch_record_modification.pl +++ b/tools/batch_record_modification.pl @@ -84,8 +84,8 @@ if ( $op eq 'form' ) { view => 'form', lists => scalar Koha::Virtualshelves->search( [ - { category => 1, owner => $loggedinuser }, - { category => 2 } + { public => 0, owner => $loggedinuser }, + { public => 1 } ] ) ); -- 2.25.1