Bug 22069: Make log viewer find item renewals
Without this patch renewals for checkouts wouldn't
show in the log viewer. The log viewre was using
RENEW, which we use for patrons, but for issue
RENEWAL is used.
The patch adds RENEWAL to the search params, when
Renew was selected in the form, so both terms are
included in the query.
To test:
- Make sure you have RenewalLog turned on
- Make a patron renewal
- Check something out and renew it
- Go to Tools > Log viewer and test different
searches
- Modules All - Actions All
- Modules All - Actions Renew
- Modules Circulation - Actions Renew
...
- Make sure results show as expected
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 3e7b24e023)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
72f0283c58
commit
b415a676f1
|
|
@ -51,6 +51,7 @@
|
|||
[% CASE 'RESUME' %]Resume
|
||||
[% CASE 'SUSPEND' %]Suspend
|
||||
[% CASE 'RENEW' %]Renew
|
||||
[% CASE 'RENEWAL' %]Renew
|
||||
[% CASE 'CHANGE PASS' %]Change password
|
||||
[% CASE 'ADDCIRCMESSAGE' %]Add circulation message
|
||||
[% CASE 'DELCIRCMESSAGE' %]Delete circulation message
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ if ($do_it) {
|
|||
|
||||
my @data;
|
||||
my ( $results, $modules, $actions, $interfaces );
|
||||
if ( grep { $_ eq 'RENEW' } @actions ) { push @actions, 'RENEWAL' }; # Circulation uses 'RENEWAL', Patrons uses 'RENEW'
|
||||
if ( defined $actions[0] && $actions[0] ne '' ) { $actions = \@actions; } # match All means no limit
|
||||
if ( $modules[0] ne '' ) { $modules = \@modules; } # match All means no limit
|
||||
if ( defined $interfaces[0] && $interfaces[0] ne '' ) { $interfaces = \@interfaces; } # match All means no limit
|
||||
|
|
|
|||
Loading…
Reference in New Issue