From 145b26a272c07e83c2fa821660bbe03d627d59bc 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. Signed-off-by: Jonathan Druart --- 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 f2865ca879..1aa7df32b4 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.39.5