View | Details | Raw Unified | Return to bug 25893
Collapse All | Expand All

(-)a/tools/viewlog.pl (-4 / +2 lines)
Lines 54-60 my $user = $input->param("user") // ''; Link Here
54
my @actions  = $input->multi_param("actions");
54
my @actions  = $input->multi_param("actions");
55
my @interfaces  = $input->multi_param("interfaces");
55
my @interfaces  = $input->multi_param("interfaces");
56
my $object   = $input->param("object");
56
my $object   = $input->param("object");
57
my $object_type = $input->param("object_type");
57
my $object_type = $input->param("object_type") // '';
58
my $info     = $input->param("info");
58
my $info     = $input->param("info");
59
my $datefrom = $input->param("from");
59
my $datefrom = $input->param("from");
60
my $dateto   = $input->param("to");
60
my $dateto   = $input->param("to");
Lines 135-141 if ($do_it) { Link Here
135
    $search_params{action} = { -in => [ @actions ] } if ( defined $actions[0] && $actions[0] ne '' );
135
    $search_params{action} = { -in => [ @actions ] } if ( defined $actions[0] && $actions[0] ne '' );
136
    $search_params{interface} = { -in => [ @interfaces ] } if ( defined $interfaces[0] && $interfaces[0] ne '' );
136
    $search_params{interface} = { -in => [ @interfaces ] } if ( defined $interfaces[0] && $interfaces[0] ne '' );
137
137
138
139
    if ( @modules == 1 && $object_type eq 'biblio' ) {
138
    if ( @modules == 1 && $object_type eq 'biblio' ) {
140
        # Handle 'Modification log' from cataloguing
139
        # Handle 'Modification log' from cataloguing
141
        my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber');
140
        my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber');
Lines 144-150 if ($do_it) { Link Here
144
            { -and => { object => \@itemnumbers, info => { -like => 'item%' }}},
143
            { -and => { object => \@itemnumbers, info => { -like => 'item%' }}},
145
        ];
144
        ];
146
    } else {
145
    } else {
147
        $search_params{info} = $info if $info;
146
        $search_params{info} = { -like => '%' . $info . '%' } if $info;
148
        $search_params{object} = $object if $object;
147
        $search_params{object} = $object if $object;
149
    }
148
    }
150
149
151
- 

Return to bug 25893