Bug 28959: Fix occurrence in tools/batch_record_modification.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Nov 2021 10:39:30 +0000 (11:39 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Nov 2021 13:27:12 +0000 (14:27 +0100)
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 <jonathan.druart@bugs.koha-community.org>
tools/batch_record_modification.pl

index f2865ca..1aa7df3 100755 (executable)
@@ -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 }
             ]
         )
     );