Bug 10352: Get add operations too
authorNick Clemens <nick@bywatersolutions.com>
Fri, 13 Dec 2019 17:08:58 +0000 (17:08 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 Jan 2020 08:37:19 +0000 (08:37 +0000)
When an add for biblio or item is recorded there is no space in the info field

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

tools/viewlog.pl

index 94c7ecb..e6630cf 100755 (executable)
@@ -140,8 +140,8 @@ if ($do_it) {
         # Handle 'Modification log' from cataloguing
         my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber');
         $search_params{'-or'} = [
-            { -and => { object => $object, info => { -like => 'biblio %' }}},
-            { -and => { object => \@itemnumbers, info => { -like => 'item %' }}},
+            { -and => { object => $object, info => { -like => 'biblio%' }}},
+            { -and => { object => \@itemnumbers, info => { -like => 'item%' }}},
         ];
     } else {
         $search_params{info} = $info if $info;