Bug 25893: Use wildcards when searching logs
The restores the wildcards that were used in the past To test: 0 - Ensure cataloguing logs and issues logs are enabled 1 - Edit an item 2 - Circulate that same item 3 - Browse to tools-> log viewer 4 - Put the itemnumber in the 'info' box 5 - You see only the circulation 6 - Put the itemnumber in the object box 7 - You see only the cataloging modification 8 - Apply patch 9 - Put itemnumber in info box 10 - you see both actions 11 - Put the itemnumber in the object box 12 - You see only the catalogiong modification Signed-off-by: Jason Robb <jrobb@sekls.org> Bug 25893: Don't wildcard object Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Bug 25893: (follow-up) Undo unrelated changes Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commitbb0abf99c4) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit30229e383c) Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
This commit is contained in:
parent
0a127a78e9
commit
bfb076327c
|
|
@ -54,7 +54,7 @@ my $user = $input->param("user") // '';
|
|||
my @actions = $input->multi_param("actions");
|
||||
my @interfaces = $input->multi_param("interfaces");
|
||||
my $object = $input->param("object");
|
||||
my $object_type = $input->param("object_type");
|
||||
my $object_type = $input->param("object_type") // '';
|
||||
my $info = $input->param("info");
|
||||
my $datefrom = $input->param("from");
|
||||
my $dateto = $input->param("to");
|
||||
|
|
@ -135,7 +135,6 @@ if ($do_it) {
|
|||
$search_params{action} = { -in => [ @actions ] } if ( defined $actions[0] && $actions[0] ne '' );
|
||||
$search_params{interface} = { -in => [ @interfaces ] } if ( defined $interfaces[0] && $interfaces[0] ne '' );
|
||||
|
||||
|
||||
if ( @modules == 1 && $object_type eq 'biblio' ) {
|
||||
# Handle 'Modification log' from cataloguing
|
||||
my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber');
|
||||
|
|
@ -144,7 +143,7 @@ if ($do_it) {
|
|||
{ -and => { object => \@itemnumbers, info => { -like => 'item%' }}},
|
||||
];
|
||||
} else {
|
||||
$search_params{info} = $info if $info;
|
||||
$search_params{info} = { -like => '%' . $info . '%' } if $info;
|
||||
$search_params{object} = $object if $object;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue