Bug 21242: If not searching for patron, move to log viewer
To test:
1 - Bring up a patron
2 - Click 'Modification log'
3 - Note you get borrower info
4 - Move the object field into info field
5 - Submit
6 - You are now on the 'Log viewer' page with admin options, not
borrower circ options
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 411e788649)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
b638541d91
commit
563bc3dbd4
|
|
@ -74,9 +74,9 @@ if ( $src eq 'circ' ) {
|
|||
use C4::Members::Attributes qw(GetBorrowerAttributes);
|
||||
my $borrowernumber = $object;
|
||||
my $patron = Koha::Patrons->find( $borrowernumber );
|
||||
my $circ_info = 1;
|
||||
unless ( $patron ) {
|
||||
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber");
|
||||
exit;
|
||||
$circ_info = 0;
|
||||
}
|
||||
if ( C4::Context->preference('ExtendedPatronAttributes') ) {
|
||||
my $attributes = GetBorrowerAttributes( $borrowernumber );
|
||||
|
|
@ -88,7 +88,7 @@ if ( $src eq 'circ' ) {
|
|||
|
||||
$template->param(
|
||||
patron => $patron,
|
||||
circulation => 1,
|
||||
circulation => $circ_info,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue